while true
java
public static byte get_int_c(stream)
{
do
{
try
{
System.out.println("Enter horizontal shift: ");
int given_num = Integer.parseInt(stream.nextLine());
if ((given_num > -26) && (given_num < 26))
{
return given_num;
}
else
{
throw new Exception("Possible value: -26 < x > 26")
}
}
catch (Exception e)
{
System.err.println(e.getMessage());
}
}
while(true);
}
Neformátovaný
Přidáno: 24.6.2013
Expirace: Neuvedeno