1.

Write a Java statement to input tread the following from the user using the keyboard. (i) Character. (ii) String.

Answer»

(i) char ch=(char)object.read(); 

(ii) String str=object.readLine();



Discussion

No Comment Found

Related InterviewSolutions