OP input value 20
Type: Posts; User: John Joe
OP input value 20
Are there any reason why you use flag ? Just use else instead.
public class JavaApplication1Print {
static Scanner hp = new Scanner(System.in);
public static void main(String[]...
What is the input you typed?