Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static float decodeFloat(byte[] bytes)
    /*    */ {
        /* 53 */return decodeFloat(bytes, 0);
        /*    */}

    public static final float decodeFloat(byte[] bytes, int offset)
    /*    */ {
        /* 67 */return Float.intBitsToFloat(decodeInt(bytes, offset));
        /*    */}

    public static final int decodeInt(byte[] bytes, int offset) {
        /* 71 */return (bytes[offset] & 0xFF) << 24 | (bytes[(offset + 1)] & 0xFF) << 16
                | (bytes[(offset + 2)] & 0xFF) << 8 | bytes[(offset + 3)] & 0xFF;
        /*    */}
}