Course Solutions Uncategorized (Solved) : Output Following Code Public Class Movetester Public Static Void Main String Args String C Q26782080 . . . .

(Solved) : Output Following Code Public Class Movetester Public Static Void Main String Args String C Q26782080 . . . .

 

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. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post