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 HomeWork.week2.Library.base; | |
import HomeWork.week2.Library.base.comp.ComparatorByNameClient; | |
import HomeWork.week2.Library.base.comp.ComparatorByTitle; | |
import HomeWork.week2.Library.base.comp.ComparatorByYear; | |
import java.util.ArrayList; | |
/** | |
* Created by dfsdfsddfsdf on 13.06.16. |
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 homeWork.library; | |
import java.util.ArrayList; | |
import java.util.Comparator; | |
import java.util.List; | |
/** | |
* Created by mykhailov on 03.06.2016. | |
*/ | |
public class Library { |
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 homeWork.library; | |
import java.util.ArrayList; | |
import java.util.Comparator; | |
import java.util.List; | |
/** | |
* Created by mykhailov on 03.06.2016. | |
*/ | |
public class Library { |
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 homeWork.library; | |
import java.util.ArrayList; | |
import java.util.Comparator; | |
import java.util.List; | |
/** | |
* Created by mykhailov on 03.06.2016. | |
*/ | |
public class Library { |
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 library2; | |
import library2.comparators.ClientsByNameComparator; | |
import library2.comparators.PrintedPublicationsByTitleComparator; | |
import library2.comparators.PrintedPublicationsByYearComparator; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; |
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 utils; | |
/** | |
* Created by istomina on 31.05.2016. | |
*/ | |
public class MyString { | |
private char[] characters; | |
public void setCharacters(char[] characters) { | |
this.characters = characters; |
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
/** | |
* Created by miha on 02.06.2016. | |
*/ | |
public class TestStudent { | |
public static void main(String[] args) { | |
/*************************создаем студентов***********************************/ | |
Student student1 = new Student("Саша", new Mydate(1989, 04, 20), 15.2, 180); | |
Student student2 = new Student("Коля", new Mydate(1988, 04, 21), 11.2, 181); |
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 homeWork.library; | |
/** | |
* Created by mykhailov on 02.06.2016. | |
*/ | |
class Book extends Issue implements Comparable { | |
private String author; //Yanchevskaya A. Лучше для author сделать отдельный класс | |
Book(String title, String author, String publisher, int year) { |
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 library2; | |
import library2.comparators.ClientsByNameComparator; | |
import library2.comparators.PrintedPublicationsByTitleComparator; | |
import library2.comparators.PrintedPublicationsByYearComparator; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; |
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 week1.day2.student; | |
/** | |
* Created by mykhailov on 22.05.2016. | |
*/ | |
public class MyDate implements Comparable { | |
private int yearsBirth; | |
private int monthBirth; | |
private int dayBirth; |