1. Engineering
  2. Computer Science
  3. question 3 13 points what is printed by the following...

Question: question 3 13 points what is printed by the following...

Question details

Question 3. (13 points) What is printed by the following sections of code? a. (5 points) String source = ID is 12-AB-1x . int pos source . indexOf(-); int posi source.indexofC .pos+1); String str1 = source . substring(pos+1,pos1); System.out.println(strl); b. (5 points) source - from Denver,co. int pos2 source.lastIndexofC, int pos3 = source . 1 astindex0f( ,pos2); String str2 source.substring(pos3+1,pos2); System.out.println(source.substring(pos3+1,pos2)) c (3 points) System.out.println(strl.compareTo(str2)>0);
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution