Which of the following statements does not contain an error?

1. string firstName= in.next();
2. string lastName= in.nextline();
3. system.out.print("\n");
a. 1 only
b. 2 only
c. 3 only
d. 1 and 3 only
e. 2 and 3 only

is the answer 1 and 3

Similar Questions
  1. Which of the following statements does not contain an error?1. string firstName= in.next(); 2. string lastName= in.nextline();
    1. answers icon 0 answers
  2. Which of the following statements does not contain an error?1. string firstName= in.next(); 2. string lastName= in.nextline();
    1. answers icon 2 answers
  3. Hi,I have to write a method that returns my first name, middle initial, and last name as a single String and call the method in
    1. answers icon 2 answers
    1. answers icon 1 answer
more similar questions