Question: Convert the following Java code into MIPS assembly language. public static void main(String[] args) { String name =JohnWick; String str1=Now its time for all Good

Convert the following Java code into MIPS assembly language.

public static void main(String[] args) {

String name ="JohnWick";

String str1="Now its time for all Good people";

String str2="to ask any question";

System.out.println(str1+" "+name);

printvowel(0,str1);

}

public static void printvowel (int vidx,String str) {

if(vidx==str.length()) {

return;

}

if(str.charAt(vidx)!='a'&&str.charAt(vidx)!='e'&&str.charAt(vidx)!='i'&&str.charAt(vidx)!='o'&&str.charAt(vidx)!='u')

System.out.print(str.charAt(vidx));

printvowel(vidx+1, str);

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!