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 7401335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:26:15+00:00 2026-05-29T04:26:15+00:00

I am new to Android. Basically done programming in C++. There is a small

  • 0

I am new to Android. Basically done programming in C++. There is a small notation I don’t understand. Can Anybody help me with this?

Ex: HashMap<String, String> o = (HashMap<String, String>)

My question is what is the use of < and > signs. Sometimes there is one parameter, sometimes there are more, and some look like a data structure.

Ex: ArrayList<HashMap<String, String>> mylist = new ArrayList<HashMap<String, String>>();

Why there are two parameters inside?

sometimes I saw it with a question mark: AdapterView<?>.

For what purpose you use the < and > sign?

This confuse me more than anything else.

Thank you in advance

  • 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-05-29T04:26:16+00:00Added an answer on May 29, 2026 at 4:26 am

    These are Java generics..

    HashMap<String, String> o = (HashMap<String, String>)objectToBeTypecast
    

    It specifies that this is not
    just an arbitrary HashMap, but a HashMap with Key and its value as a String parameters, written HashMap < String, String>.
    We say that HashMap is
    a generic interface that takes a type parameters – in this case, String.

    To know more about generics, you can have a look here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that eclipse can do this, can Intellij via the new Android support
I am new android and I would appreciate some help. I have this code:
I'm trying to record audio this.recorder = new android.media.MediaRecorder(); this.recorder.setAudioSource(android.media.MediaRecorder.AudioSource.MIC); this.recorder.setOutputFormat(android.media.MediaRecorder.OutputFormat.DEFAULT); this.recorder.setAudioEncoder(android.media.MediaRecorder.AudioEncoder.DEFAULT); this.recorder.setOutputFile(pruebaAudioRecorder.mp4); **this.recorder.prepare();**
I'm new to Android dev. There's a very pretty state diagram of the MediaPlayer
i'm new at Android world, and i have a doubt, is there any method
Firstly I am new to android and Java so this is a beginners question.
I'm new to Eclipse/Android development so I'm hoping this is something basic that I'm
Hey everyone. I'm kinda new to android programming so please bear with me. I'm
I'm abit new to programming Android App's, however I have come across a problem,
I have developed some reusable android component which is basically a class . This

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.