waf

FORK: waf with some random patches
git clone https://git.neptards.moe/neptards/waf.git
Log | Files | Refs | README

Hello.java (499B)


      1 package es; // obligatory
      2 
      3 import es.Comp;
      4 
      5 public class Hello
      6 {
      7 	int m_var = 0;
      8 	public Hello()
      9 	{
     10 		this.m_var = 2;
     11 	}
     12 
     13 	class MyHelperClass
     14 	{
     15 		MyHelperClass() { }
     16 		int someHelperMethod(int z, int q) { return 2; }
     17 	}
     18 
     19 	public Object makeObj(String name)
     20 	{
     21 		final String objName = "My name is " + name;
     22 
     23 		return new Object() {
     24 			public String toString()
     25 			{
     26 				return objName;
     27 			}
     28 		};
     29 	}
     30 
     31 	public static void main(String args[])
     32 	{
     33 		System.out.println("Hello, world" + Comp.WAF);
     34 	}
     35 }
     36