开发者

Android, How to define multiple variables at once

开发者 https://www.devze.com 2023-02-10 11:14 出处:网络
I have two variables and was 开发者_运维百科wondering how I would define both at once. Button answer1;

I have two variables and was 开发者_运维百科wondering how I would define both at once.

    Button answer1;
Button answer2;


If I understand your question correctly, you need to do this:

Button answer1, answer2;


This seems like it should be correct.

Button answer1, answer2; 
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号