String temp = new String();temp = s1;s1 = s2;s2 = temp;,”There are two String variables , s1 and s2

Average Rating
0 out of 5 stars. 0 votes.

String temp = new String();temp = s1;s1 = s2;s2 = temp;,”There are two String variables , s1 and s2

that have already been declared and initialized . Write some code that exchanges their values . Declare any other variables as necessary.”