hi everyone
i am new to java, and i am having some problems with inputting a sentence. i wanted to write a program that will be able to read a sentence. this is what i have so far :
import java.util.*;
public class Sentence
{
public static void main (String[] args)
{
String name;
String surname;
String IDcard;
String description;
String hobbies;
Scanner input = new Scanner (System.in);
System.out.print ("Enter your name: ");
name = input.next();
System.out.print ("Enter your surname: ");
surname = input.next();
System.out.print ("Enter your ID card number: ");
IDcard = input.next();
System.out.print ("Enter a description of yourself: ");
description = input.next();
System.out.print ("Enter your hobbies: ");
hobbies = input.next();
}
}
i tried using delimiters, but i don't actually know how to use them. any ideas :confused: ?
