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
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by Fernflower decompiler) | |
// | |
package com.javarush.test.level14.lesson06.home01; | |
import com.javarush.test.level14.lesson06.home01.Hen; | |
public class BelarusianHen extends Hen { |
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 com.javarush.test.level14.lesson08.home03; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
/* User, Looser, Coder and Proger | |
1. Ввести [в цикле] с клавиатуры несколько строк (ключей). | |
Строки(ключи) могут быть такими: "user", "looser", "coder", "proger". | |
Ввод окончен, когда строка не совпадает ни с одной из выше указанных. |
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 com.javarush.test.level14.lesson08.home06; | |
/* MovieFactory | |
Расширение функционала по аналогии, чтение с консоли: | |
1. Разобраться, что программа умеет делать. | |
2. Все классы должны быть внутри класса Solution. | |
3. Добавить классы Cartoon, Thriller. | |
4. Разобраться, как мы получаем объект класса SoapOpera по ключу "soapOpera". | |
Аналогично получению объекта SoapOpera сделать: | |
5. Добавить в MovieFactory.getMovie получение объекта Cartoon для ключа "cartoon". |
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 com.javarush.test.level15.lesson12.home09; | |
/* Парсер реквестов | |
Считать с консоли URl ссылку. | |
Вывести на экран через пробел список всех параметров (Параметры идут после ? и разделяются &, например, lvl=15). | |
URL содержит минимум 1 параметр. | |
Если присутствует параметр obj, то передать его значение в нужный метод alert. | |
alert(double value) - для чисел (дробные числа разделяются точкой) | |
alert(String value) - для строк |
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 com.javarush.test.level15.lesson12.home09; | |
/* Парсер реквестов | |
Считать с консоли URl ссылку. | |
Вывести на экран через пробел список всех параметров (Параметры идут после ? и разделяются &, например, lvl=15). | |
URL содержит минимум 1 параметр. | |
Если присутствует параметр obj, то передать его значение в нужный метод alert. | |
alert(double value) - для чисел (дробные числа разделяются точкой) | |
alert(String value) - для строк |
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 com.javarush.test.level15.lesson12.home10; | |
/* ООП - наследование | |
Исправить класс Hrivna так, чтоб избежать ошибку StackOverflowError, класс Money менять нельзя. | |
*/ | |
public class Solution { | |
public static void main(String[] args) { | |
System.out.println(new Hrivna().getAmount()); | |
} |
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 TEST; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.util.*; | |
public class qSort { | |
static Random rand = new Random(); | |
public static void main(String[] args) { |
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 com.javarush.test.level16.lesson13.home08; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.ArrayList; | |
import java.util.List; | |
/* Кто первый встал - того и тапки | |
1. Разберись, что делает программа. |
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 com.javarush.test.level17.lesson04.task04; | |
/* Синхронизированный президент | |
И снова Singleton паттерн - синхронизация в статическом блоке | |
Внутри класса OurPresident в статическом блоке создайте синхронизированный блок. | |
Внутри синхронизированного блока инициализируйте president. | |
*/ | |
public class Solution { | |
public static class OurPresident { |
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 com.javarush.test.level17.lesson10.bonus02; | |
import java.text.ParseException; | |
import java.text.SimpleDateFormat; | |
import java.util.ArrayList; | |
import java.util.Date; | |
import java.util.List; | |
import java.util.Locale; | |
/* CRUD 2 |