![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Sep 2004
Posts: 29
Rep Power: 0
![]() |
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. |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|