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 argEquals(String string, String string2) {

        if (string.toLowerCase().equals(string2.toLowerCase()))
            return true;
        StringBuilder sb = new StringBuilder();
        for (char c : string2.toCharArray()) {
            String h = Character.toString(c);
            if (h.toUpperCase().equals(h)) {
                sb.append(h);
            }
        }
        if (sb.toString().toLowerCase().equals(string.toLowerCase()))
            return true;

        return false;

    }
}