I'm new to Java and I want to execute a method corresponding to a String I receive. In Python I would just do this
myString = "create"
options = {
"create": self.create,
"delete": self.delete,
"list_jobs": self.list_jobs
}
options[myString]()
Is this possible in Java?