+ 2
How do I run true test in coach code? Java language.
5 Answers
+ 5
Just tell me which code coach problem you mentioning about.
+ 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.
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";
}
}
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.