I don't think I understood the code above well enough but will I get the value(=10) from that?
Is there another way of getting the object, x without doing the above(if possible without creating new classes). The idea is that you are only given the name of the object and from that find a way to get the other stuff. I don't necessary need to know the object but I'd like to find a way to get the value of the object with the name 'the_name'
public class GrossmontBank
//class variables (global - accessible throughout this class)
//scanner object to be used throughout
private static Scanner input = new Scanner(System.in);