Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.io.DataInputStream;
import java.io.FileInputStream;

public class Main {

    public static void main(String[] args) throws Exception {
        FileInputStream fin = new FileInputStream("C:/Long.txt");
        DataInputStream din = new DataInputStream(fin);
        long l = din.readLong();
        System.out.println("long : " + l);
        din.close();
    }
}