Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Using the switch statement in java
Name: TANDO Date: March 1, 2005 at 13:03:50 Pacific OS: WINDOWS XP CPU/Ram: PENTIUM 4
Comment:
When I compile the code below I get this error message : " illegal start of expression " The code is :public class MySwitch { public static void main (String[] args) { String MyString1="Tando"; String MyString2="Sibanda"; int MyInt1=-5; int MyInt2=-9;
Summary: I think you mean Select Case...it is VB's equivalent to C/C++'s switch statement. IN C/C++ switch(aValue) { case 0: DoSomething(); break; case 1: DoSomethingElse(); ...
Summary: I want to use Switch Statement in VB6 .I have three option buttons & a command button .I want that when i select option1 & press my command button & write 1 in Input box then it will show a message "I...
Summary: Hello, I'm relatively new to java and I've got a problem with the switch statement. What I'm trying to do is inside the body of the switch im trying to check what a user inputs and return a Sys.out m...