This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Krestiki; | |
import java.util.Scanner; | |
import java.util.Arrays; | |
import java.util.Random; | |
public class MyKtestic { | |
public static String [][] PlayingField =new String[3][3]; | |
public static String gamer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package VirtualFileSysMy; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
public class GUI { | |
public static void mainMenu(VirtyalFileSystem obj) throws IOException { | |
System.out.println("\n The Virtyal File System is loaded\n"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Kvartiry; | |
//Спроектировать базу «Квартиры». Каждая запись в базе содержит данные о квартире (район, | |
//адрес, площадь, кол. комнат, цена). Сделать возможность выборки квартир из списка по | |
//параметрам. | |
import java.sql.*; | |
import java.util.Random; | |
public class Main { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class IPhone extends Phone { | |
public IPhone() { | |
System.out.println("IPhone constructor"); | |
touch = true; | |
hasWifi = true; | |
screenSize = 3; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Придумать свое исключение и написать соответствующий класс и использующий его код. | |
import java.util.Scanner; | |
public class Myclass { | |
public static class TextExceptions extends Exception { | |
public TextExceptions (String message){ | |
super(message); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class InData { | |
private String [] [] par1; | |
public InData () { | |
par1 = new String [10][10]; | |
} | |
public static class FormatException extends Exception { | |
public FormatException (String message){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class Developer { | |
protected String job; | |
protected String name; | |
protected double basicSalary; | |
protected int experience; | |
public Developer(String job, String name, double basicSalary, int experience) { | |
this.job = job; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Figures_polimorfism; | |
public class Circle extends Rectangle { | |
public Circle(){ | |
r=5; | |
//System.out.println("Конструктор Круг"); | |
} | |
public Circle( int r){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Human; | |
public class HumanComparable implements Comparable{ | |
private int age; | |
public HumanComparable (int age){ | |
this.age= age; | |
} | |
public int getAge(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Figures_polimorfism; | |
public class Circle extends Figures { | |
public Circle(){ | |
a=5; | |
//System.out.println("Конструктор Круг"); | |
} | |
public Circle( int a){ |
OlderNewer