waf

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

Hello.java (486B)


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