Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

bufferedReader.readLine() random order of lines ?  RSS feed

 
Ranch Hand
Posts: 212
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why this is reading lines of text in completely randome order, not from top to bottom ?

 
Miran Cvenkel
Ranch Hand
Posts: 212
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ahh, forget that, my mistake.
 
Ranch Hand
Posts: 781
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are mistaken. Since you are reading from a Reader which is just a stream of chars it must read from 'top to bottom'.
 
Bartender
Posts: 2292
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy, Miran!

Can you show us your solution, champ? This can be helpful to other people that run into the same mistake as you in the future.
 
Miran Cvenkel
Ranch Hand
Posts: 212
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just had one extra



before while so it started reading at second line.
Showing that in some text boxes further confused things.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!