U
usatoday
I got to finish this project by tomorrow, but I really don't know how
to. If I don't finish it, I will be doomed
I don't understand java
AT ALL, I AM A JAVA IDIOT. Please help me! your help will be
appreciated!
The project is Reversewords.
We have to design a function that will take a string of words and hand
it back to the caller with all the words reversed (E.g. "i like you"
becomes "you like i"). Use two nested for loops in the routine to get
your result. Afterwards, in the main, continue asking the user for a
sentence- or just type return to end (can use while loop in main).
this is what I got so far.
public class Reversewords
{
public static void main(String [] args)
{
Scanner inputreader=new Scanner(System.in);
int 0 = sen.getLength()-1;
int c = 0;
}
for (c=orj; c>0; c--)
{
if (sen.charAt(c)=='')
{
String sb = sen.substring(c+1,ori+1);
system.out.print(sb)" ";
ori = c;
}
}
to. If I don't finish it, I will be doomed
AT ALL, I AM A JAVA IDIOT. Please help me! your help will be
appreciated!
The project is Reversewords.
We have to design a function that will take a string of words and hand
it back to the caller with all the words reversed (E.g. "i like you"
becomes "you like i"). Use two nested for loops in the routine to get
your result. Afterwards, in the main, continue asking the user for a
sentence- or just type return to end (can use while loop in main).
this is what I got so far.
public class Reversewords
{
public static void main(String [] args)
{
Scanner inputreader=new Scanner(System.in);
int 0 = sen.getLength()-1;
int c = 0;
}
for (c=orj; c>0; c--)
{
if (sen.charAt(c)=='')
{
String sb = sen.substring(c+1,ori+1);
system.out.print(sb)" ";
ori = c;
}
}