Please helps me with a project | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 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

5th Apr 2021, 7:09 AM
purveshKolhe
purveshKolhe - avatar
3 Antworten
+ 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?
5th Apr 2021, 10:12 AM
Denise Ro├čberg
Denise Ro├čberg - avatar
+ 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); } }
9th Dec 2021, 8:59 AM
Aditya Prabhu
Aditya Prabhu - avatar
- 2
If possible provide a link to it
5th Apr 2021, 9:18 AM
Sacalivin Obiri
Sacalivin Obiri - avatar