Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8758597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:35:23+00:00 2026-06-13T14:35:23+00:00

currentProfile.getFriends() method returns a Iterator over a ArrayList. It works as supposed but the

  • 0

currentProfile.getFriends() method returns a Iterator over a ArrayList. It works as supposed but the compiler gives me a friendly warning when assigning it to another iterator: iterator is a raw type. References to generic type Iterator <E> should be parameterized

I have little or no idea what this means, care to enlighten me? if my description were not clear enough, this is what I am doing Iterator friendList = currentProfile.getFriends();

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T14:35:24+00:00Added an answer on June 13, 2026 at 2:35 pm

    Please look at the signature of the method getFriends() if you can. That should look like:

    public Iterator<some type> getFriends()
    

    the "some type" is the type you need to put in the Iterator reference.
    For example if the method is:

    public Iterator<Friend> getFriends()
    

    use:

    Iterator<Friend> friendList = currentProfile.getFriends(); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a C struct with about 17 members struct settings currentProfile and would
I followed a tutorial online to use the built in asp.net profiler but it's
I developed a HttpModule for assigning themes to pages during it's PreInit event from
I know that ProfileCommon is not available in a Web Application Project (WAP), but
To give some context, the following dropdown is within a form that gives the
I'm having really weird situation. I create a singletone object of a class named
I have additional variables I add to an authlogic users session like: session[:current_profile] =
ASP.NET profile properties are trivially available to the code-behind of an ASPX web page
i have a mini app where users can login, view their profile, and follow
INSERT INTO tblprofile (fldDate,fldemployeeno,fldLName,fldFName,fldMI,fldEmployeeName, fldShiftCode,fldProjectGroup,fldTask,fldSuperior,fldPosition) SELECT now(),tblprofile.fldemployeeno,tblprofile.fldlname,tblprofile.fldfname,tblprofile.fldmi,tblprofile.fldemployeename, tblprofile.fldshiftcode,tblprofile.fldprojectgroup,tblprofile.fldtask,tblprofile.fldsuperior,tblprofile.fldposition FROM tblprofile WHERE tblprofile.flddate = (SELECT

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.