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 Solution { | |
public static void main(String[] args) { | |
System.out.println(new Today(WeatherType.CLOUDY)); | |
System.out.println(new Today(WeatherType.FOGGY)); | |
System.out.println(new Today(WeatherType.FROZEN)); | |
} |
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 Solution { | |
public static void main(String[] args) throws IOException | |
{ | |
// напишите тут ваш код | |
BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); |
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
/* | |
Neo | |
*/ | |
public class Solution | |
{ | |
public static void main(String[] args) throws Exception | |
{ | |
System.out.println(Matrix.NEO); |
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
/* | |
1. Исправь классы Fox и BigFox так, чтобы программа компилировалась. | |
Задача не предполагает создания экземпляров базового класса. | |
2. Метод main менять нельзя. | |
*/ | |
public class Solution { | |
public static void main(String[] args) throws Exception { | |
Fox bigFox = new BigFox(); | |
System.out.println(bigFox.getName()); |
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 Person implements RepkaItem | |
{ | |
private String name; | |
private String namePadezh; | |
public Person(String name, String namePadezh) | |
{ | |
this.name = name; | |
this.namePadezh = namePadezh; | |
} |
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 Solution { | |
public static void main(String[] args) { | |
List<Apartment> apartments = new ArrayList<Apartment>(); | |
apartments.add(new Apt1Room()); | |
apartments.add(new Apt2Room()); | |
apartments.add(new Apt3Room()); |
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 Solution { | |
public static void main(String[] args) { | |
List<Apartment> apartments = new ArrayList<Apartment>(); | |
apartments.add(new Apt1Room()); | |
apartments.add(new Apt2Room()); | |
apartments.add(new Apt3Room()); |
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 Solution | |
{ | |
public static void main(String[] args) throws Exception | |
{ | |
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); | |
int v1 = Integer.parseInt(reader.readLine()); |
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 Singleton | |
{ | |
private static Singleton instance=null; | |
public static Singleton getInstance() | |
{if(instance==null) | |
instance=new Singleton(); | |
return instance; | |
} |
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 Solution | |
{ | |
public static void main(String[] args) | |
{ | |
List<Book> books = new LinkedList<Book>(); |