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";
    }

}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.