• 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
Im done with my python courses.what language should I do next?
0 Votes
a question
1 Votes
Is it possible to program computer code using only musical notes?
0 Votes
App developer
2 Votes
Game developer
1 Votes
NEXT step
0 Votes
Numbers Won’t Sort Correctly — Example With 49s Draw Numbers
0 Votes
I need help with something plz
0 Votes
Did Solo learn remove the community-made lessons?
1 Votes
I need someone to put me through this web development
0 Votes