How do I run true test in coach code? Java language. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How do I run true test in coach code? Java language.

24th Dec 2019, 6:39 PM
Branko Celic
Branko Celic - avatar
4 Answers
+ 5
Just tell me which code coach problem you mentioning about.
25th Dec 2019, 4:47 PM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar
+ 1
Bank Celic copy your code to a playground (code bits) Java code and run with your own test input. This way you can add console output to help trouble shoot. When you think it's ready, copy the code and paste into the solution you are working on.
9th Feb 2020, 4:06 PM
Paul K Sadler
Paul K Sadler - avatar
0
Ok. This is my code. How do i runn tests now? public class Program { public static void main(String[] args) { System.out.println(transformeSentence("go over there")); } public static String transformeSentence( String sentence) { String[]words=sentence.split(" "); String transformedSentence=""; for(int i=0; i<words.length ; i++) { transformedSentence+=transformeWord(words[i])+" "; } return transformedSentence.substring(0 , transformedSentence.length()); } public static String transformeWord( String word ) { return ""+word.substring(1,word.length())+word.charAt(0)+"ay"; } }
24th Dec 2019, 9:22 PM
Branko Celic
Branko Celic - avatar
0
When i code in coach code window there are implemented test that i need to pass to complete an task. But i dont know how to run them.
24th Dec 2019, 9:42 PM
Branko Celic
Branko Celic - avatar