What is the output of the following code?
public class MoveTester {
public static void main(String[] args) {
}
String courseName = ” business coputer languages”;
String string1 = ” seu ,”;
int n = courseName.length();
{
System.out.print(“Welcome to”);
System.out.println(courseName);
System.out.print(“number of characters in course name is:”);
System.out.println(n);
String string2=string1.toUpperCase();
//string1.toLowerCase()”
System.out.print(string2);
courseName.replace(“S”, “s”);
courseName.replace(“C”, “c”);
courseName.replace(“L”, “l”);
System.out.print(courseName);
System.out.print(” . . . . . .. .Good luck “);
}
}
Expert Answer
An answer will be send to you shortly. . . . .