hello can you help me please how can input text with space..
sample:
Enter your full name: jemz gimz
Enter your company name: company one
jemz gimz company one
import java.util.*;
public class SampleNexLine
{
public static void main(String []args)
{
Scanner console = new Scanner(System.in);
String name,cname;
System.out.print("Eter Your Full Name: ");
name=console.nextLine();
console.nextLine();
System.out.print("Enter your Company Name: ");
cname =console.nextLine();
console.nextLine();
System.out.println(name + cname);
}
}
can you help me please...thank you in advance hoping for your positive response