FANDOM


/**
  * Type test - A type tester for java
  *
  * Allows easier type checking of variables since
  * this feature is not already built in for some reason.
  *
  * Written by Benjamin Williams <Prince(ss) Platinum>
  *
  * Licensed under the GNU General Public License v2
  */

public class TypeTest {

    public String test(boolean x) {
        return "boolean";
    }

    public String test(byte x) {
        return "byte";
    }

    public String test(char x) {
        return "char";
    }

    public String test(double x) {
        return "double";
    }

    public String test(float x) {
        return "float";
    }

    public String test(int x) {
        return "int";
    }

    public String test(String x) {
        return "string";
    }

}