+ 8
Please helps me with a project
Can you please briefly explain the code of module project 3 of java? That is reverse a string
3 odpowiedzi
+ 3
Purvesh Kolhe
Do you mean the loan calculator?
And don't you understand what to do or do you have a code and can't pass all test cases?
+ 2
import java.util.Scanner;
public class Program
{
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String text = scanner.nextLine();
char[] arr = text.toCharArray();
int n=arr.length;
String str="";
for(int i=n-1 ; i>-1 ; i--)
{ str=str+arr[i];
}
System.out.println(str);
}
}
- 2
If possible provide a link to it