xxx of yyy characters
Join Group
#1 place for windows tips, c/c++, java and visual basic help
Google Translation:
Off
When Google Translation is on, topics and messages in this group will be machine-translated to your language by Google.
Messages
Topic:
about switch in Java
//Excure me , Can i ask everybody for
//question ? (about Java)
//******************************
switch(var){
case *:
...
}
//**********************************
//at var. can it use double ? or only
//Int , not sure.
Aug 3, 2008
12:14 AM
switch sentence is only for primitive datatypes (int, char),and cannot be used with classes (you can't use an String for the switch).
And in the case *, must be
case '*':
Aug 9, 2008
7:44 PM
u can use a variable of any data type
there is no restriction of usage of a particular data type variable
Feb 28
12:34 AM