I need help in the SoloLearn' problems | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

24th Jul 2020, 10:46 AM
Robson José Da Silva
Robson José Da Silva - avatar
2 Answers
+ 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.
24th Jul 2020, 11:00 AM
Denise Roßberg
Denise Roßberg - avatar
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
24th Jul 2020, 4:06 PM
Robson José Da Silva
Robson José Da Silva - avatar