Answer:
import java.io.File; // Import the File class
import java.io.FileNotFoundException; // Import this class to handle errors
import java.util.Scanner; // Import the Scanner class to read text files
public class ReadFile {
public static void main(String[] args) {
try {
File myObj = new File("filename.txt");
Scanner myReader = new Scanner(myObj);
while (myReader.hasNextLine()) {
String data = myReader.nextLine();
System.out.println(data);
}
myReader.close();
} catch (FileNotFoundException e) {
System.out.println("An error occurred.");
e.printStackTrace();
}
}
}
Explanation:
this will read the file and print it out, to do the rest have it take the data and use some "java math" and then print the answers to either console or a file of your choice.
Your answer is C, <span>
The Occupational Safety and Health Act of 1970 protects working men's and women's safety.</span>
Answer:
Hurray, we won the tournament!
Explanation:
hurray is an interjection just like yikes, uh-oh, and others
Answer: I gave 6 you can choose from.
Integrity
Scalability
Quality of Service
Fault of Tolerance
Powerline Networking
Security
*ip+1
ip is a pointer to int
*ip is that int so *ip+1 is the value at ip plus 1