All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Lib.tests.source.OddsAndEnds Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
public final strictfp class OddsAndEnds {

	static private void test(float f, Object o){
	    //synchronized(o)
		{
			long x = (long)f;
			if (o instanceof Long) {
				long y = (Long)o;

				if (y <= x){
					System.out.println((-y) % (-f));
				}
			}
		}

		int x = print("Hello, World!");
		int y = (o == null) ? (x ^ -1) : 42;
		print("" + f + y + (f + y));
	}

    public static void main(String args[]){

    	if (args != null) {
    		Object x = args;
    		try {
    			java.util.List y;
    			System.out.println(y = (java.util.ArrayList)x);
    			args = y.toArray(new String[0]);
    		}
    		catch (final ClassCastException e) {
    			args = true?args:null;
    		}
    	}

        test(42.24f, args);
		test(4.224f, Long.valueOf(args[0]));

		test(-0.0f, main(999999999L));
    }

 	public static int main(Object x){
		boolean a = false;
		boolean b = true;
		boolean c = x == null == a;
		boolean d = b?a?b:a?b:a:b?a:b;
		boolean e = (a?b:c)?d:c?b:a;

		return ((Number) x).shortValue();
	}


	static int print(String s){
		System.out.println(s);
		return s.hashCode();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy