- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
public static int getLengtg() throws NumberFormatException, IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int dlina;
try{
dlina = Integer.parseInt(reader.readLine());
}
catch(IOException e)
{
dlina = Integer.parseInt(reader.readLine());
}
return dlina;
}
Комментарии (3) RSS