Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » ArrayList in Java not giving angular bracket
ArrayList in Java not giving angular bracket [message #1720323] Sun, 17 January 2016 06:34 Go to next message
Jeen P N is currently offline Jeen P NFriend
Messages: 2
Registered: January 2016
Junior Member
Hello,

I am new to programming, and learning JAVA using Eclipse.

The issue is related to ArrayList.

When I select ArrayList - java.util, it imports additional import statement (import java.util.ArrayList;) at the top of the code.

But below the
public static void main(String[] args) {
ArrayList
}

it does not display the angular bracket/diamond bracket beside the ArrayList as shown in the attached image.

When manually adding <> beside ArrayList, it gives error.





--------

Eclipse Version Installed:

Eclipse Standard/SDK
Version: Kepler Service Release 2
Build id: 20140224-0627


Re: ArrayList in Java not giving angular bracket [message #1720500 is a reply to message #1720323] Tue, 19 January 2016 05:10 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

ArrayList<>, literally like that, isn't a valid type name. I wouldn't expect it to be proposed--why do you?

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: ArrayList in Java not giving angular bracket [message #1720547 is a reply to message #1720500] Tue, 19 January 2016 09:05 Go to previous messageGo to next message
Jeen P N is currently offline Jeen P NFriend
Messages: 2
Registered: January 2016
Junior Member
I was referring to a Java Certification Course- Lite edition in EdCast.Org

A screenshot is attached for reference.


Re: ArrayList in Java not giving angular bracket [message #1754560 is a reply to message #1720323] Mon, 20 February 2017 09:28 Go to previous message
antonio sarco is currently offline antonio sarcoFriend
Messages: 2
Registered: February 2017
Location: uae
Junior Member
Hope this will help you to know more about...ArrayList

Anto
Previous Topic:Is it possible to work with eclipse android "offline"
Next Topic:Does jetty not support DSA public key certificate?
Goto Forum:
  


Current Time: Wed Apr 24 21:27:16 GMT 2024

Powered by FUDForum. Page generated in 0.07706 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top