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 _isItReadable(String input) {
        int readableChar = 0;
        for (int i = 0; i < input.length(); i++) {
            int c = input.charAt(i);
            if (c >= 32 && c < 127) {
                readableChar++;
            }
        }
        return (readableChar > (input.length() * 0.75) ? true : false);
    }
}