|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Word Scrambler
Help - I am a total beginner and i try to write a word scrambler program in Java, that has two methods called scrambled word and scrambled words. The program needs to read a paragraph of words from a text file and return the words scrambled, except for the first and last letters from every word. The program can not contain arrays. Please help me, i don't know what to do anymore. It needs to be beginner level...
|
|
#2
|
|||
|
|||
|
Here is a pseudocode:
Code:
class Scramble{
String scrambledString;
main{
open text file;
String yourString = read from text file;
Scramble s = new Scramble()// create new object
s.method1(yourString);
print(s.method2());
}
method1(String someString){
Scramble letters of someString;
scrambledString = someString;
}
String method2(){
return scrambledString;
}
Where exactly are you stuck? Can you post some code? Don't expect us to do the homework for you, however, we can help solve problems you might encounter. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > Word Scrambler |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|