| JawaKing00 |
Nov 29th, 2004 6:26 PM |
Ok,
For my Java class I need to implement the Farmer/Wolf/Goat/Cabbage puzzle.
For the input to the program I am to use command line arguments that will be just the letters E or W indicating which side of the river each thing is on and which side they should be on when finished.
What I want to do is take the String arguments passed and change them into char variables so I can easily compare them and such. I can't seem to figure out how to change a string of one letter into a char though.
Can anyone give me some form of advice?
Thank you.
|