My question is related to java
Using java a class called Bag is to be created. This bag is special, each object of this class contains 3 random letters unknown to the user and programmer (a-z lowercase). The Bag class also has a method called GrabLetter that takes as parameter an integer n (0,1, or 2) and will return one of the random letters it contains depending on the value of n. (giving the same integer twice to the same object of Bag should return the same letter). If the given integer, to any bag, is not 0,1, or 2 it will always return '?' (Use switch statement )
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here