I intend to use java with Android Studio to make a calculator, however, every time I click a button I add to a list the values of those buttons.
But having error in declaring the list. someone can help me?
You are not programming C #, this is Java.
You can not instantiate List
in Java, because List
is an abstract class. You can instantiate a ArrayList
.
List<Character> Conta = new ArrayList<Character>();