error: 'List' is abstract can not be defined

0

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?

    
asked by anonymous 06.03.2016 / 21:57

1 answer

3

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>();
    
06.03.2016 / 23:02