could you please do this question below on java:
In this assignment you need to create an ArrayList.
Input is from the file words.txt. These are 4581 words. Enter them into an ArrayList. NOTE: you should have a method called getInput() which returns this ArrayList.
Test your work by printing the first word in the ArrayList - should be "noncollectable", and print the last word in the ArrayList - should be "listlessly"
Then, in main, 10 times:
Generate a random integer between 0 and 4580. Print the string that is at that position in the arraylist. For example, if your random number is 193, then print the string at position 193 in your list.
Input File:is below i attched
22 freelancer đang chào giá trung bình $15 cho công việc này
Hi, I am a software engineer experienced in Java (I am using Eclipse Juno). I can complete your projects within a few hours from awarding, properly tested and commented. Looking forward to hearing from you.
Hello, I am Java developer with experiences. I can make this project looks like "professional" or like it is done by student. I have done similar project in past. It could be done fast. Best regards!
Yup, this is something that I can do in just a few minutes. I might even have it done by the time you read this once I'm done looking at other jobs to bid on.
Hello! I am extremely familiar with ArrayLists and File Parsing in Java. Do you need it as a .jar or just the .java source code? My time estimate for completion is a day from hire at most. Best, Mathieu