Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

why netbeans is showing output in this way ?  RSS feed

 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the issue is that you have two buffered readers. Create only one reader and use it to read both values.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!