Guys, can you help me translate this method below into Java code?
public void loadStars() {
/* Define File object
Set up try-catch block
Create Scanner object connected to file
While scanner has next line
Read a line
Split into String array (elements are separated by spaces)
Parse individual elements (convert strings to double or int)
Create a new star
Add star to sky by calling addStar method in Sky class
Close scanner
Catch goes here. */
}