Java program to reverse each and every word in the given String text

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

WOwww what an explanation sir!!! Take a bow 🙇🙇🙇🙇

tejalycan
Автор

Hi Sir really ur videos are so helpful thank you so much

emmadivamshi
Автор

Sir I m execute is perfectly fine but word didnot get space class ReverseofWords {
public static void main(String[] args) {
String input="java balu";
System.out.println("original string :: "+input);
String[] words=input.split(" ");
String revword=" ";
String output="";
for(String word : words )
{
for(int i=word.length()-1; i>=0; i--)
{

}

}output=output+revword+" ";
System.out.println(" Output \t:"+output);
}
}

kraghavendra