This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • 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
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Storing bits and pieces of a text file using buffered reader  RSS feed

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
suppose i have a text file with several lines
3/3/3, 3,3,3
4/4/4,2,4,5
etc... how do i store the part with the 3/3/3 in a seperate array and the remaining numbers in different arrrays Like how can i take each part of the text and store it in diferent arrays. I know i can use the split statement but then what? plzz help
thanks in advance
 
Rancher
Posts: 1926
15
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You probably need to split statements here. Assuming that a variable called line contains the value.
 
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

leila la wrote:plzz help


Please UseRealWords <-- link
 
leila la
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok Darry Burke, so sorry about that!

Thanks Swastik Dey, but what do you mean that the variable called line contains the value. What sort of value are you referring to here?
Thank you for replying!
 
leila la
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I found this code and was hoping someone could explain what was going on, it could help me.
 
Marshal
Posts: 62842
203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked at this method?
 
If you settle for what they are giving you, you deserve what you get. Fight for this tiny ad!
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!