Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package annotationeventtest;
- import java.io.BufferedReader;
- import java.io.FileReader;
- import java.io.IOException;
- public class HelloWorld {
- public HelloWorld() {
- try {
- BufferedReader reader = new BufferedReader(new FileReader("hello.txt"));
- int count = new Integer(reader.readLine());
- for (int i = 0; i < count; i++) {
- System.out.println("Hello " + reader.readLine() + "!");
- }
- } catch (IOException ignored) {}
- }
- public static void main(String[] args) {
- new HelloWorld();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement