Home / Uncategorized / How to convert a text file content into array by java programming

How to convert a text file content into array by java programming

Suppose you have a text file named “test.text” which contains these texts below

Apple

Ball

Cat

Now if you want to put those text in a array in java programming you have to write the below code

Here

is the location of the text file in my pc 🙂

About Rana

Avatar photo
Love to do fun with programming and build something new.. :)

Leave a Reply

Your email address will not be published. Required fields are marked *