Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes IDEs, Version Control and other tools and the fly likes why netbeans is showing output in this way ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "why netbeans is showing output in this way ?" Watch "why netbeans is showing output in this way ?" New topic
Author

why netbeans is showing output in this way ?

naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 692

why netbeans is showing output in this way





input is 20 , 20.
addition : 40 should be the last line normally ....can any one help me with this here


The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

I think the issue is that you have two buffered readers. Create only one reader and use it to read both values.


JBoss In Action
 
wood burning stoves
 
subject: why netbeans is showing output in this way ?