File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can 2 while loop in method?

 
kahkean chor
Ranch Hand
Posts: 67
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 466
1
IntelliJ IDE Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A method can have any number of while loop. Not sure what you mean by received data type.
 
kahkean chor
Ranch Hand
Posts: 67
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic