Please reply to this only if you know about java .. i got lots of answer before
ID: 3647220 • Letter: P
Question
Please reply to this only if you know about java .. i got lots of answer before , but got error in reverse.... syntax.Please i am tired of getting same answer and same error..Please don't copy and paste from internet if you don't know what you are doing. Thank You.Write a Java application titled MyStringClassTest that creates an instance of the String class and initializes this instance with a String literal. Use a for loop structure to print the string in reverse order. Implement the following two String member methods to complete the assignment.
length( )
charAt( )
Write a program to test your class MyStringTest.
Explanation / Answer
public class MyStringTest { public static void main(String args[]) { String st=new String("abcdef"); for(int i=st.length()-1;i>=0;i--) { System.out.print(st.charAt(i)); } } }
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.