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
    
  
  
    
  | Reflection: | |
| Метод принимает класс и возвращает созданный объект этого класса | |
| Метод принимает object и вызывает у него все методы без параметров | |
| Метод принимает object и выводит на экран все сигнатуры методов в который есть final | |
| Метод принимает Class и выводит все не публичные методы этого класса | |
| Метод принимает Class и выводит всех предков класса и все интерфейсы которое класс имплементирует | |
| Метод принимает объект и меняет всего его приватные поля на их нулевые значение (null, 0, false etc)+ | 
  
    
      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 datastructures.queue; | |
| import java.util.Iterator; | |
| public class LinkedQueue implements Queue, Iterable { | |
| private int size; | |
| private Node head; | |
| @Override | 
  
    
      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 datastructures.map; | |
| public class Entry { | |
| Object key; | |
| Object value; | |
| public Entry(Object key, Object value) { | |
| this.key = key; | |
| this.value = value; | |
| } | 
  
    
      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.study.datastructures.list; | |
| public class LinkedList implements List { | |
| Node head; | |
| Node tail; | |
| int size; | |
| @Override | |
| public void add(Object value) { | |
| if (size == 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.study.datastructures.list; | |
| // Abstract Data Type | |
| public interface List { | |
| // add value to the end of the list | |
| void add(Object value); | |
| // [A, B, C, null, null] size = 3 | |
| // add (D, [0,1,2,3]) | |
| // we can add value by index between [0, size] | 
  
    
      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
    
  
  
    
  | <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" | |
| content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <link rel="stylesheet" href="css/styles.css"> | |
| <title>Document</title> | 
  
    
      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.iryna.net.io; | |
| import java.io.*; | |
| import java.net.ServerSocket; | |
| import java.net.Socket; | |
| public class Server { | |
| private static final int PORT = 3000; | 
  
    
      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
    
  
  
    
  | class DataMessageDao implements MessageDao { | |
| private DataOutputStream objectOutputStream; | |
| public DataMessageDao(OutputStream outputStream) throws IOException { | |
| this.objectOutputStream = new DataOutputStream(outputStream); | |
| } | |
| @Override | |
| public void save(Message message) 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
    
  
  
    
  | package com.ohapon.io; | |
| import java.io.*; | |
| import java.net.ServerSocket; | |
| import java.net.Socket; | |
| public class Server { | |
| public static void main(String[] args) throws IOException { | |
| ServerSocket serverSocket = new ServerSocket(3000); | |
| // listen | 
  
    
      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.ohapon.io; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| class BufferedInputStream extends InputStream { | |
| InputStream target; | |
| @Override | |
| public int read(byte[] b) throws IOException { | 
NewerOlder