import java.awt.*;
import java.util.Scanner;

public class PhoneBook {
    public static void main(String[] args) {
        int ID, number;
        String name, surname, tag, type;
    Number a1=new Number();
        a1.showNumber();

        System.out.println("  :");
        System.out.println("1 -  ; 2 - .");
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        switch (a) {
            case 1:

                ID= in.nextInt();

                Number x = new Number(ID, in.nextLine(), in.nextLine(), in.nextLine(), new Phone("sdf", in.nextLine()));

                break;
            case 2:

                break;
        }

    }
}
////////////////////////////////////////////////////////////////////
class Phone{
    private String type;
    private String numb;

    public Phone(){
        type="mob";
        numb="9876543210";
    }
    public Phone(String type, String number){
        this.type=type;
        this.numb=number;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getNumb() {
        return numb;
    }

    public void setNumb(String number) {
        this.numb = number;
    }
}
////////////////////////////////////////////////////////////////////
class Number{
    private int ID;
    private String name;
    private String surname;
    private String tag;
    Phone tel=new Phone();

    public Number(){
        ID=0;
        name="Ivan";
        surname="Ivanov";
        tag="friend";
    }

    public Number(int ID, String name, String surname, String tag, Phone tel) {
        this.ID = ID;
        this.name = name;
        this.surname = surname;
        this.tag = tag;
        this.tel = tel;
    }

    public int getID() {

        return ID;

    }//?????  if  

    public void setID(int ID) {
        this.ID = ID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSurname() {
        return surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public Phone getTel() {
        return tel;
    }

    public void setTel(Phone tel) {
        this.tel = tel;
    }

    public void showNumber(){
        System.out.printf("%d %s %s %s %s", ID, name, surname, getTel(), tag);
    }
}
@@ -256,18 +256,44 @@
 rintln(%22
-  
+%D0%92%D1%8B%D0%B1%D0%B5%D1%80%D0%B8%D1%82%D0%B5 %D0%BD%D0%B5%D0%BE%D0%B1%D1%85%D0%BE%D0%B4%D0%B8%D0%BC%D0%BE%D0%B5 %D0%B4%D0%B5%D0%B9%D1%81%D1%82%D0%B8%D0%B5
 :%22);%0A   
@@ -325,15 +325,36 @@
 1 - 
- ; 2 - 
+%D0%B4%D0%BE%D0%B1%D0%B0%D0%B2%D0%B8%D1%82%D1%8C %D0%B7%D0%B0%D0%BF%D0%B8%D1%81%D1%8C; 2 - %D1%83%D0%B4%D0%B0%D0%BB%D0%B8%D1%82%D1%8C
 .%22);
@@ -1884,14 +1884,40 @@
 ????
-  if  
+%C3%AF%C3%B0%C3%A8 %C3%A4%C3%AE%C3%A1%C3%A0%C3%A2%C3%AB%C3%A5%C3%AD%C3%A8%C3%A8 if %C3%B1%C3%AA%C3%AE%C3%A1%C3%AA%C3%A0 %C3%AA%C3%B0%C3%A0%C3%B1%C3%AD%C3%A0%C3%BF
 %0A%0A  
@@ -2607,16 +2607,17 @@
 ), tag);%0A    %7D%0A%7D
+%0A

Update PhoneBook.java