So say I had a variable like this:
String var = "name"
instead of making a method like so -
Public void name{
System.out.println("This is a method called name");
}
I want to create like this -
Public void var{
System.out.println("This is a method called name");
}
but instead of the method being called var, I want it to be called name
The reason I need this:
I'm building a lexer/parser, and this reads methods from another (made up) language, so I want to transfer these methods into java with the same names to be called upon later on