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
| import java.io.BufferedReader; | |
| import java.io.FileInputStream; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.util.ArrayList; | |
| import java.util.Collections; | |
| public class Solution { | |
| public static void main(String[] args) throws IOException |
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
| public class Person implements RepkaItem{ | |
| private String name; | |
| private String namePadezh; | |
| public Person(String name, String namePadezh) { | |
| this.name = name; | |
| this.namePadezh = namePadezh; | |
| } | |
| public void pull(Person p) |
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.task13.task1328; | |
| public abstract class AbstractRobot implements Attackable, Defensable{ | |
| private static int hitCount; | |
| private static int hitCount2; | |
| private String name; | |
| public BodyPart attack() { |
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
| import java.io.BufferedReader; | |
| import java.io.InputStreamReader; | |
| /* | |
| Player and Dancer | |
| */ | |
| public class Solution { | |
| public static void main(String[] args) throws Exception { | |
| BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); |
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.task14.task1408; | |
| /** | |
| * Created by Денис on 03.08.2018. | |
| */ | |
| public class BelarusianHen extends Hen | |
| { | |
| @Override | |
| String getDescription() |
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.task14.task1411; | |
| public interface Person { | |
| class User implements Person { | |
| void live() { | |
| System.out.println("Usually I just live."); | |
| } | |
| } | |
| class Loser implements Person { |
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.task14.task1413; | |
| /** | |
| * Created by Денис on 08.08.2018. | |
| */ | |
| public interface CompItem | |
| { | |
| String getName(); | |
| } |
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.task14.task1417; | |
| /** | |
| * Created by Денис on 11.08.2018. | |
| */ | |
| public class Hrivna extends Money | |
| { | |
| @Override | |
| public String getCurrencyName() | |
| { |
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
| /* | |
| НОД | |
| */ | |
| import java.io.BufferedReader; | |
| import java.io.InputStreamReader; | |
| public class Solution { | |
| public static void main(String[] args) throws Exception { |
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.task14.task1421; | |
| /** | |
| * Created by Денис on 13.08.2018. | |
| */ | |
| public class Singleton | |
| { | |
| static private Singleton instance=null; | |
| private Singleton() | |
| { |
OlderNewer