WPM
100
CPM
100
Errors
0
Time
15Min
Accuracy
100%
Start Java code typing Practice. Java Main Methods Static Methos, Creating Objects in Java, Thread Using Runnable Interface, Reverse String Using Loop and Input From User in Java.Click on the area below to start typing.

S.No.Paragraph : Practice repeatedly whatever you would like most for full fifteen minutes Lessionsclick to Practice
1import java.util.Scanner; class ReverseStringExample1 { public static void main(String args[]) { String s; Scanner sc=new Scanner(System.in); System.out.print("Enter a String: "); s=sc.nextLine(); //reading string from user System.out.print("After reverse string is: "); for(int i=s.length();i>0;--i){ //i is the length of the string System.out.print(s.charAt(i-1)); //printing the character at index i-1 } } }1.4 reverse string in Java by using for loop