хотя в System.out.printLn указано (glass=(int)Math.ceil(glass))