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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:11:25+00:00 2026-06-16T21:11:25+00:00

I am working on a client-server application in which server sends the indication and

  • 0

I am working on a client-server application in which server sends the indication and client receives those indication.The Map is declared as

private static Map<key,value> obj=new HashMap<key,value>();

The Map is getting the values through synchronised(obj) in constructor of the value Class

obj.put(this,this);

I am trying to retrieve the all the keys for this Map. I used Set<key> t=Map.KeySet(); but this throws a compile error saying can not found symbol :KeySet() in interface java.util.Map. Note:key is interface and value is the class in which Map is Declared.

  • 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-16T21:11:26+00:00Added an answer on June 16, 2026 at 9:11 pm

    Check the Map API once. Map is interface and you are trying to use the keySet() like you call a static method.

    You should call the methods on the object created.

    you should use obj.keySet()

    Map Api

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

Sidebar

Related Questions

I am working on a client-server application in Java which is going to use
Im working on a Client/server chat application which allows user to send files (images
I am working on a client/server application and communication between the two is encrypted.
I'm working on a client-server application (.NET 4, WCF) that must support backwards compatibility.
I'm working on a client-server Android application and trying to figure out how to
I am working on a .net rich client server application, the client call the
I have a WCF service as part of a client/server application I am working
I am working on an application where client and server share an object model,
Currently I'm working on a Server-Client system which will be the backbone of my
i have created a server and client application which works. however the client or

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.