• 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:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!