Suppose , I have some variables as :
String x="abcd";
String y="qwert";
String z="mnvji";
and more...
I take an input from user. If user inputs 'x' , I print that string i.e. I print "abcd" If user inputs 'y' , I print "qwert" and so on... Is there any way to do it without switches or ifs??
Thank you,friends, in advance.