I want to covert the value of a String
to a variable name in Java.
I've found the solution for this problem, but in javascript(Convert string to variable name in Javascript) not in java.
boolean hi;
boolean bye;
boolean question;
String myString = "hi";
public void changeBooleanValue(){
[value of myString]= true;
}
Can you help me please?