Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static boolean isInt(String str) {
        char[] content = str.toCharArray();

        for (int i = 0; i < content.length; ++i) {
            if (content[i] > 57 || content[i] < 48) {
                return false;
            }
        }

        return true;
    }
}