Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static int getInt(String str) {
if (str == null || str.isEmpty() || str.equals("0"))
return 0;
int value = Integer.parseInt(str);
return value;
}
}