I’m using eclipse to build an Android Twitter App
I’m trying to pass values into the variables itemOfClothing, clothingEmotion and “user” but eclipse is not even allowing me to initiate variables with the same names let alone pass values into them.
I get the following errors:
Duplicate field TwitterApp.itemOfClothing
Duplicate field TwitterApp.clothingEmotion
Duplicate field TwitterApp.user
Syntax error on token ";", { expected after this token
Syntax error, insert "}" to complete Block
Can some please help?
String itemOfClothing; //Item of clothing sending the message
String clothingEmotion; //Message of clothing
String user; //This comes from twitter sign in process
//Examples of what would be passed into the variables!
itemOfClothing = "pants";
clothingEmotion = "I'm feeling left in the dark";
user = "stuart";
Trying to pass values into itemOfClothing, clothingEmotion and “user” but it won’t let me. I know it’s something silly but I don’t know why. Can someone give me an answer please?
public static String MESSAGE = itemOfClothing +": " + clothingEmotion + "! #" + user + "EmotionalClothing";
Static variables can only reference other static variables.