String gender=s.next();
String gender=s.nextLine();
s.nextLine
String gender=s.next(); s.nextLine(); // add this to consume the end of line. System.out.println("Hailing from:");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)