Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why netbeans is showing output in this way ?

 
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: 5852
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