0 LIKES LikeUnLike
import java.util.Scanner;public class inputString {public static void main(String []args) { String inStr, inLine; Scanner s = new Scanner(System.in); inStr = s.next(); inLine = s.nextLine(); System.out.print(“inStr =†inStr); System.out.print(“inLine=†inLine); }}hmm shouldn't it be scanner sc... and sc.next(); and sc.nextLine();...
Tags:
Report (0) (0) | earlier
Latest activity: earlier. This question has 1 answers.