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.level20.lesson10.bonus04; | |
import java.io.*; | |
import java.util.*; | |
/* Свой список | |
Посмотреть, как реализован LinkedList. | |
Элементы следуют так: 1->2->3->4 и так 4->3->2->1 | |
По образу и подобию создать 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.test.level38.lesson10.home01; | |
public class IncorrectAccount { | |
@LongPositive | |
private String amountString; | |
} |
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.level38.lesson08.task02; | |
import java.lang.annotation.ElementType; | |
import java.lang.annotation.Target; | |
import java.util.ArrayList; | |
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 com.javarush.test.level38.lesson08.task01; | |
/* Предопределенные типы аннотаций (Predefined Annotation Types) | |
Расставьте в этом классе, везде где только можно, все возможные предопределенные в Java аннотации. | |
Не должно быть избыточности. | |
*/ | |
@SuppressWarnings("deprecation") | |
@Deprecated | |
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.test.level38.lesson06.home02; | |
public interface Connection { | |
void connect() throws WrongDataException, ConnectionException; | |
void write(Object data) throws WrongDataException, ConnectionException; | |
Object read() throws WrongDataException, ConnectionException; | |
void disconnect() throws WrongDataException, ConnectionException; | |
} |
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.level38.lesson06.task01; | |
/* Улучшения в Java 7 (try-with-resources) | |
Перепиши реализации методов класса Solution. | |
Используй нововведения, касающиеся обработки исключений, которые были добавлены в Java 7. | |
*/ | |
import java.io.BufferedInputStream; | |
import java.io.FileInputStream; | |
import java.io.IOException; |
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.level38.lesson06.home01; | |
public enum ExceptionApplicationMessage { | |
UNHANDLED_EXCEPTION, | |
SOCKET_IS_CLOSED | |
} |
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.level36.lesson08.bonus01; | |
import java.lang.reflect.Field; | |
public class NodeHelperTestSolution { | |
public static void changeNode(String nodName, RedBlackTree tree, String fieldName, RedBlackTree.Node newValue) throws | |
Exception | |
{ | |
RedBlackTree.Node header = getFromTreeNodeByName(nodName, tree); |
NewerOlder