Home / 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

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

Check Also

linux-logo-2

‘Access denied for user ‘root’@’localhost’ solution

Open terminal Type sudo mysql then type ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘yourpassword’;

Leave a Reply

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