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.task.task36.task3611; | |
import java.util.HashSet; | |
import java.util.Set; | |
import java.util.TreeSet; | |
/* | |
Сколько у человека потенциальных друзей? | |
*/ |
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.task.task36.task3603; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.concurrent.CopyOnWriteArrayList; | |
/* | |
Поиск класса по описанию | |
*/ |
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.task.task36.task3601; | |
import java.util.List; | |
/** | |
* Created by Administrator on 19.05.2017. | |
*/ | |
public class Controller | |
{ Model model=new Model (); | |
public List<String> onDataListShow() |
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.task.task35.task3511; | |
import java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.List; | |
/* | |
Wildcards для коллекций | |
*/ | |
public class Solution |
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.task.task35.task3508; | |
import java.util.List; | |
/* | |
extends vs super | |
*/ | |
public abstract class Solution { | |
public abstract <T> void one(List<T> destination, List<T> source); |
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.task.task35.task3512; | |
public class Event { | |
private static int nextId = 1; | |
private int id; | |
public Event() { | |
id = nextId++; |
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.task.task35.task3510; | |
public class Cat { | |
protected String name; | |
public Cat(String name) { | |
this.name = name; | |
} |
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.task.task35.task3506; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.ListIterator; | |
/* | |
Wildcards | |
*/ | |
public class Solution |
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.task.task35.task3505; | |
public interface Convertable<Key> { | |
Key getKey(); | |
} |
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.task.task35.task3503; | |
public class ClassForGenerics { | |
} |