Skip to content

Commit de28273

Browse files
everse words in a sentence without using library method?
reverse words in a sentence without using library method? (solution) Write a function, which takes a String word and returns sentence on which words are reversed in order e.g. if an input is "Java is best programming language", the output should be "language programming best is Java".
1 parent 357f8b1 commit de28273

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Challenge12.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ public void test() {
3636
System.out.println(returned);
3737
assertTrue("hello hi how".equals(returned));
3838
}
39+
3940
}

0 commit comments

Comments
 (0)