Create a text file that contains the ranks, minimum wages andnames of 20 states and capitals in the U.S. Find the attached exceldocument (united states) containing these data and follow theguidelines below to create the file. (You may choose any 20 statesof your choice).
Create two classes (WageTextFile and FileTesting). TheFileTesting contains the main method while the WageTextFile classcontains the codes for the methods.
1. Import the following packages:
– java.io.FileNotFoundException;
– java.util.Formatter;
– java.util.NoSuchElementException;
– java.util.Scanner;
– javax.swing.JOptionPane;
2. Create a class with a name “WageTextFile”
– Create a private static Formatter variable
3. Create a method that creates or open a text file with a nameopenFile
– Pass an
PayPal Gateway not configured
PayPal Gateway not configured