Win a copy of Design for the Mind this week in the Design 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