Ok so my program is call TaxPayer, it takes information like social security, name, income, etc. I decided i wanted to get a user input, and my first idea isnt working quite right.
When i run the program it asks social security just fine, but then it prints both last and first name at once, i tried making the scan.nextLine be scan.next instead, it solved the first problem but still does it for addresses and state. Did i mess something up?
System.out.println("Enter your social security number"); socialIn=scan.nextInt(); System.out.println("Enter last name"); lastNmIn=scan.nextLine(); System.out.println("Enter your first name"); firstNmIn=scan.nextLine(); System.out.println("Enter your first address"); address1In=scan.nextLine(); System.out.println("Enter your second address (or enter blank)"); address2In=scan.nextLine(); System.out.println("Enter city"); cityIn=scan.nextLine(); System.out.println("Enter state"); stateIn=scan.next(); System.out.println("Enter zip code"); zipIn=scan.nextInt(); System.out.println("Enter income"); incomeIn=scan.nextDouble(); System.out.println("Enter marital status (S: Single M: Maried D: Divorced"); maritalIn=scan.next().charAt(0);