eclipse を使用して Android の Twitter アプリを作成しています。変数 itemOfClothing、clothingEmotion、および "user" に値を渡そうとしていますが、値を渡すだけでなく、同じ名前の変数を開始することさえできません。
次のエラーが表示されます。
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
いくつか助けてもらえますか?
String itemOfClothing; //Item of clothing sending the message
String clothingEmotion; //Message of clothing
String user; //This comes from twitter sign in process
//変数に渡されるものの例!
itemOfClothing = "pants";
clothingEmotion = "I'm feeling left in the dark";
user = "stuart";
itemOfClothing
、および「ユーザー」に値を渡そうとしてclothingEmotion
いますが、許可されません。ばかげていることはわかっていますが、その理由はわかりません。誰かが私に答えてもらえますか?
public static String MESSAGE = itemOfClothing +": " + clothingEmotion + "! #" + user + "EmotionalClothing";