+ 1
I need help in the SoloLearn' problems
I dont get to resolve the problems, because até 5 tests in problems, how do i answer the 5 tests? I get to resolve one at a time, but the exercises have 5 tests at once
3 Antworten
+ 3
Hello Robson José Da Silva
It works automatically. When you run your code it will first check the output for the first test case, after that it checks it for second test case and so on.
Your solution must be generally applicable, i.e. work for different inputs.
0
public class Teste {
public static String reverse (String o) {
String temporaria = ""; for (int i = o.length() - 1; i >= 0; i--)
temporaria += o.charAt(i); return at once;
}
public static void main(String[] args) { //String two = "garbage"; System.out.println(Teste.reverse(two));
String linguagem = "bathroom"; System.out.println(Teste.reverse(linguagem));
//String s = "dog"; System.out.println(Teste.reverse(s));
//String d = "how are you?"; System.out.println(Teste.reverse(d));
}}
The alien problem, how would be to resolve the problem?
The output in test1 goind out two or three answers até once