Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static Integer getInt(String orgin, Integer def) {
        if (orgin == null || orgin.equals(""))
            return null;
        try {
            return Integer.valueOf(orgin);
        } catch (Exception e) {
            return def;
        }
    }
}