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

Posted by Ar Míng ™ 

Note: To add an image or link in your message, use <img src="http://www.hi5.com/example.jpg"> or <a href="http://www.hi5.com/example.html">Text </a>

 
 

  
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

Posted by Daniel 

Note: To add an image or link in your message, use <img src="http://www.hi5.com/example.jpg"> or <a href="http://www.hi5.com/example.html">Text </a>

 
 

  
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

Posted by Suman Reddy

Note: To add an image or link in your message, use <img src="http://www.hi5.com/example.jpg"> or <a href="http://www.hi5.com/example.html">Text </a>

 
 

  

Title
body