I can't get the input value in the first static block.
This is my code:
public static void main(String args[])throws IOException{
    int i,people,timeai,tablenoai;
    double iprice,timebi,tablenobi;
    char decider1;
    String name;
    InputStreamReader read=new InputStreamReader(System.in);
    BufferedReader in=new BufferedReader(read);
    System.out.println("Welcome To Joel's Restaurant");
    System.out.println("How Many People Do You Have?");
    people=Integer.parseInt(in.readLine());
    System.out.println("And May I Know Your Good Name?");
    name=in.readLine();
}
    public static void sleep(The_Restaurant millis) throws InterruptedException{
    double timebi;
    int timeai;
    timebi=Math.random()*1000;
    timeai=(int)timebi;
    Thread.sleep(timeai);
}
public static void main(The_Restaurant args[])throws IOException{
    int tablenoai;
    double tablenobi;
    tablenobi=Math.random()*10;
    tablenoai=(int)tablenobi;
    System.out.println("Mr."+name+"Table For"+people+"Your Table No Is"+tablenoai);
}
Is there any way to do it?
 
     
    