• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
0

First line question

I think it’s should be ArrayList<String> list = new<String> ArrayList; Instead List <String> list = new<String> ArrayList;

spelling
1st Jun 2019, 10:21 PM
Ivanov Viktor
Ivanov Viktor - avatar
1 Answer
+ 2
Here is an explanation: https://stackoverflow.com/questions/9852831/polymorphism-why-use-list-list-new-arraylist-instead-of-arraylist-list-n
2nd Jun 2019, 12:29 AM
Denise Roßberg
Denise Roßberg - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Can you give me some advice on what project I can start with today to practice HTML, CSS, and JavaScript?
0 Votes
I've a HTML code question
0 Votes
C++
0 Votes
Appointment Booking website
0 Votes
Offline AI Model with Fast Voice Chat
0 Votes
Building an AI Call Tracking & Routing System — Anyone tried it?
0 Votes
Give me advice
1 Votes
I am asking for your help, I need to optimisate my code.
0 Votes
Activate account
0 Votes
Is this for use
0 Votes