声明按钮数组 [英] Declaring an array of buttons
本文介绍了声明按钮数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我实例化了26个具有字母字母的按钮,并且我认为这是多余的,因此需要帮助来声明数组中的所有26个按钮必须都针对字母表中的字母.
Hi
I have instantiated 26 buttons each having the letter of the alphabet, and i thought that was redundant, so need help to declaring all 26 buttons in array each must be for the letter in the alphabet.
推荐答案
使用简单数组(按字母索引)或 Java集合类之一 [ ^ ].
Use a simple array (indexed by letter) or one of the Java Collection classes[^].
这篇关于声明按钮数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文