@Test public void testVarUsage(){ assertEquals(new BigDecimal(80),valAndVarUserDemo.varCheck()); }
public Object varCheck() { var money = new BigDecimal(53.00); System.out.println(money.getClass()); money=new BigDecimal(80.00); return money; }
ValAndVarUserDemo { public Object varCheck() { var money = new BigDecimal(53.00); System.out.println(money.getClass()); money=new BigDecimal(80.00); return money; } }
ValAndVarUserDemo { public Object varCheck() { var money = new BigDecimal(53.00); System.out.println(money.getClass()); money=new BigDecimal(80.00); return money; }  }
ValAndVarUserDemo { public Object varCheck() { var money = new BigDecimal(53.00); System.out.println(money.getClass()); money=new BigDecimal(80.00); return money; }  String valCheck(); Object varCheck(); }
ValAndVarUserDemo { public Object varCheck() { var money = new BigDecimal(53.00); System.out.println(money.getClass()); money=new BigDecimal(80.00); return money; }  String valCheck(); Object varCheck();  }