I have a file that is tab separated. i read it in as an arraylist<string> how can i print out only the second section of the file?
mrjoli021
-3
Junior Poster
Recommended Answers
Jump to PostThat depends what "second section" means. If you can't be more specific than that, you have little chance of getting a program to do something with it.
Jump to PostThen use String.split() to separate it and read the second element of the result.
Jump to PostDid you read the api doc on split() at all?
All 9 Replies
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
mrjoli021
-3
Junior Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
mrjoli021
-3
Junior Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
mrjoli021
-3
Junior Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
mrjoli021
-3
Junior Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.