any one who is good programer
Answers
Answered by
0
Answer:
This a Program.
import java util.*;
class Sentence
{
public static void main ()
{
Scanner s c = new Scanner (System.in);
System out print l n ("Enter a sentence");
String s t r = s c . next Line ();
String s t = new ();
String a[] = new String [n];
for
{
}
for
{
for j=0;j<n-1;j++)
{
if (a[j].length()>a[j+1].length())
{
String t=a[j];
a[j]=a[j+1];
a[j+1]=t;
}
}
}
for
{
}
}
}
Similar questions