Recall that in Project #2 you parsed an input string with co…

Recall that in Project #2 you parsed an input string with course information such as course id, dept name, etc. (for example, 123 PS-1002-G14 3.5-Intro to Psychology). Explain how you used the lastIndexOf(String str) method in your project. Reminder: You must have earned 4/10 or higher on Project #2 to receive credit for this answer.

Given the following method in the Dice class,  Modifier…

Given the following method in the Dice class,  Modifier and Type Method and Description void roll() stores a random number in the range 1-6 in each of the instance variables   and   Dice theDice = new Dice();   Explain why the following statement produces a syntax error.   System.out.println(theDice.roll());