| Author |
can 2 while loop in method?
|
kahkean chor
Ranch Hand
Joined: Jan 26, 2013
Posts: 41
|
|
is there correct if there are 2 while loop in a method to received difference data type
while(true){
readUtf()...... <-when string is received enter this loop
}
while(true){
readObject()...... <-when object and string is received enter this loop
readInt()......
}
|
 |
Vinod Tiwari
Ranch Hand
Joined: Feb 06, 2008
Posts: 458
|
|
|
A method can have any number of while loop. Not sure what you mean by received data type.
|
Vinod Tiwari | Twitter
|
 |
kahkean chor
Ranch Hand
Joined: Jan 26, 2013
Posts: 41
|
|
ok ..i make an example
first time,server issue an string to client
but second time server issue an object to client....how to solve this problem
|
 |
 |
|
|
subject: can 2 while loop in method?
|
|
|