Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.io.DataInputStream;

import java.io.IOException;

public class Main {

    public static float readFloat(DataInputStream is) throws IOException {
        return Float.intBitsToFloat(readInt(is));
    }

    public static int readInt(DataInputStream is) throws IOException {
        return Integer.reverseBytes(is.readInt());
    }
}