Question 1
Provide three examples of code using assignment statements where one assignment statement would result in a syntax error, one would result in a logical error, and one would result in a run-time error.Question 2
Using the various String methods, manipulate a String called current to be current's last character followed by the remainder of its characters in order, placing the result in a String called rearranged.Answer 1
int x = 5.0 / 2.0; // syntax error caused by right side providing a double and the left side wants an intAnswer 2
String rearranged = current.charAt(current.length( ) - 1) + current.substring(0, current.length( ) - 1);