error: 'List ' is Abstract cannot be defined

Asked

Viewed 38 times

0

I intend to use java with Android Studio to make a calculator, however, every time I click an add button to a list the values of these buttons.

But having error in the list statement. someone can help me?

Foto do meu programa com o erro

  • 1

    The only way to use C# with Android is using Xamarin Studio or Visual Studio with plugin Xamarin

  • That’s not C#, that’s Java.

1 answer

3


You’re not programming C#, that’s Java.

You can’t instantiate it List in Java, because List is an abstract class. You can instantiate a ArrayList.

List<Character> Conta = new ArrayList<Character>();

Browser other questions tagged

You are not signed in. Login or sign up in order to post.