Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    private static boolean whitespaceOnly(String s) {
        for (int i = 0; i < s.length(); i++) {
            char cur = s.charAt(i);
            if (cur != ' ' && cur != '\n' && cur != '\r') {
                return false;
            }
        }
        return true;
    }
}