> Java Question? when I run this code after king Arthur my outputs come together. they do not work and do not separate the

Java Question? when I run this code after king Arthur my outputs come together. they do not work and do not separate the

Posted at: 2014-12-18 
Please enter your address:

Please enter your city:

SRC:

/*

* Erik Quintanilla

* Java Period 6

* Data Basics number four

*/

import java.io.*;

import java.text.*;

import java.util.Scanner;

public class Hero {

public static void main(String[ ] arg)

{

Scanner S = new Scanner (System.in);

System.out.print("What is your name?");

String Name = S.next();

System.out.println(Name + "@Camelot.com" );

String Person;

Person = "King Arthur and Guinevere";

System.out.println(Person);

System.out.println("Please enter your Full Name:");

String Namex = S.next();

System.out.print("Please enter your address:");

String Address = S.next();

System.out.print("Please enter your city:");

String City = S.next();

System.out.print("Please enter your state:");

String State = S.next();

System.out.print("Enter your ZIP:");

int ZIP = S.nextInt();



System.out.print( Namex + " " + Address + " " + City + ", " + State + ", " + ZIP);



int citylength = City.length();

System.out.println(citylength);



String random = "Pendragon, Uther";

System.out.println (random.substring (1,16) );





}

}