Naming Is Hard--Not With The VarVar Pattern 📎
In Java naming is not hard, you can conveniently name everything var
:
class Var { String var; public Var() { this.var = "duke is varvar!"; } record VAR(Var var){ public String getVar(){ return this.var.var; } } public static void main(String... args) { var var = new VAR(new Var()); System.out.println(var.getVar()); } }