Well one of the '1's is the input you provided, and the other is you printing out the age of the user.
If you only want one '1' appearing altogether, remove
System.out.println(age);
Type: Posts; User: newbie
Well one of the '1's is the input you provided, and the other is you printing out the age of the user.
If you only want one '1' appearing altogether, remove
System.out.println(age);