Okay, this is kinda hard to explain.
I basically have a list of String variables which are named random objects. Those string variables are assigned colours so
E.G. String blood = "red"
String water = "clear"
String sky = "blue"
etc etc.... (sorry I dont know how to add the actual code i have written)
Then I want the user to be able to enter an object into a JOptionPane box thing and receive an answer in the next JOptionPane box, saying
what colour the object they have entered into the first box is.
So i have - JOptionPane.showInputDialog("Enter an object to find out what colour it is");
and I have - JOptionPane.showMessageDialog(null,);
aaaaaaaaaaaaaaaaaaaand from then on my brain has gone silent.
Thank you for any help! I know this is probably something easy but I'm just having a mind blank!