Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.zip.CRC32;

public class Main {

    public static long getStringCRC(String localData) {
        if (localData == null)
            return 0;
        CRC32 crc = new CRC32();
        crc.update(localData.getBytes());
        return crc.getValue();
    }
}