Question: Question 9 Given that ( String s = My department is CSE) the statement System out.println(s.indexOf(Departement); displays 3 2 4 -1 Question 10 Choose the

 Question 9 Given that ( String s = "My department is
CSE") the statement System out.println(s.indexOf("Departement"); displays 3 2 4 -1 Question 10

Question 9 Given that ( String s = "My department is CSE") the statement System out.println(s.indexOf("Departement"); displays 3 2 4 -1 Question 10 Choose the right answer in the line 10 of the following code that reads and prints the user inputs (course code and course name) String ename: int code ; Scanner output= new Scanner (System.in): System.out.print("please enter course code"); 9 code =output.nextInt(); 10 //..... 12 System.out.print("please enter course name :"); 12 cname-output.nextLine(): 13 System.out.print("the course name is "+ename): 14 System.out.println(" the course code 19 "+code): cname-output nexto chame-output nextinto), cname-output nextLine(). no statement is missing

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!