Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.io.File;
import java.io.RandomAccessFile;

public class Main {
    public static void main(String[] argv) throws Exception {
        RandomAccessFile file = new RandomAccessFile(new File("scores.html"), "rw");
        for (int i = 1; i <= 6; i++) {
            System.out.println(file.readLine());
        }
        file.close();
    }
}