@Test public void testValUsage(){ assertEquals("hello world",valAndVarUserDemo.valCheck()); }
public String valCheck() { val userName = "Hello World"; System.out.println(userName.getClass()); return userName.toLowerCase(); }
ValAndVarUserDemo { public String valCheck() { val userName = "Hello World"; System.out.println(userName.getClass()); return userName.toLowerCase(); } }
ValAndVarUserDemo { public String valCheck() { val userName = "Hello World"; System.out.println(userName.getClass()); return userName.toLowerCase(); }  }
ValAndVarUserDemo { public String valCheck() { val userName = "Hello World"; System.out.println(userName.getClass()); return userName.toLowerCase(); }  String valCheck(); Object varCheck(); }
ValAndVarUserDemo { public String valCheck() { val userName = "Hello World"; System.out.println(userName.getClass()); return userName.toLowerCase(); }  String valCheck(); Object varCheck();  }