This file contains hidden or 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.task.task34.task3410.controller; | |
| import com.javarush.task.task34.task3410.model.Direction; | |
| import com.javarush.task.task34.task3410.model.GameObjects; | |
| import com.javarush.task.task34.task3410.model.Model; | |
| import com.javarush.task.task34.task3410.view.View; | |
| public class Controller implements EventListener{ | |
| private View view; | |
| private Model model; |
This file contains hidden or 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.task.task40.task4006; | |
| import java.io.*; | |
| import java.net.Socket; | |
| import java.net.URL; | |
| /* | |
| Отправка GET-запроса через сокет | |
| */ |
This file contains hidden or 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.task.task40.task4004; | |
| import java.awt.*; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| /* | |
| Принадлежность точки многоугольнику | |
| */ |
This file contains hidden or 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.task.task26.task2613; | |
| import com.javarush.task.task26.task2613.command.CommandExecutor; | |
| import com.javarush.task.task26.task2613.exception.InterruptOperationException; | |
| public class CashMachine { | |
| public static final String RESOURCE_PATH = CashMachine.class.getPackage().getName() + ".resources."; | |
| public static void main(String[] args) { | |
| // ConsoleHelper.writeMessage( |
This file contains hidden or 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.task.task39.task3912; | |
| /* | |
| Максимальная площадь | |
| */ | |
| public class Solution { | |
| public static void main(String[] args) { | |
| int[][] matrix = { | |
| {0, 1, 1, 1, 0}, |
This file contains hidden or 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.task.task39.task3910; | |
| /* | |
| isPowerOfThree | |
| */ | |
| public class Solution { | |
| public static void main(String[] args) { | |
| System.out.println(isPowerOfThree(2*3*3)); | |
| } |
This file contains hidden or 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.task.task39.task3909; | |
| /* | |
| Одно изменение | |
| */ | |
| public class Solution { | |
| public static void main(String[] args) { | |
| System.out.println(isOneEditAway("", "")); // true | |
| System.out.println(isOneEditAway("", "m")); //true | |
| System.out.println(isOneEditAway("m", "")); //true |
This file contains hidden or 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.task.task28.task2810; | |
| import com.javarush.task.task28.task2810.model.HHStrategy; | |
| import com.javarush.task.task28.task2810.model.Model; | |
| import com.javarush.task.task28.task2810.model.MoikrugStrategy; | |
| import com.javarush.task.task28.task2810.model.Provider; | |
| import com.javarush.task.task28.task2810.view.HtmlView; | |
| public class Aggregator { | |
| public static void main(String[] args) { |
This file contains hidden or 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.task.task39.task3913; | |
| public enum Event { | |
| LOGIN, | |
| DOWNLOAD_PLUGIN, | |
| WRITE_MESSAGE, | |
| SOLVE_TASK, | |
| DONE_TASK | |
| } |
This file contains hidden or 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.task.task37.task3714; | |
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| /* | |
| Древний Рим | |
| */ | |
| public class Solution { |
NewerOlder