• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Hashmap in Java Eclipse

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to complete the printAreaCode method on this program. I have to get the PhoneNumber object from the map and then get the area code from the PhoneNumber. Then the if statement can compare an area code to an area code.
 
Saloon Keeper
Posts: 10924
87
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows ChatGPT
 
Anai Anderson
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The code for PhoneNumber is supposed to be underneath the "for" statement
 
Carey Brown
Saloon Keeper
Posts: 10924
87
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows ChatGPT
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You didn't post the code for the PhoneNumber class and you didn't say where you were stuck. Does this help?
 
Anai Anderson
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok it works now; Thank you so much for responding and for your help!  
 
Marshal
Posts: 79929
396
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch
 
Saloon Keeper
Posts: 28313
207
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch!

But there really isn't such a thing as "Java Eclipse". Java is a programming language, Eclipse is a software development application. The code you create in Eclipse is the same code you'd create in Intellij. Or Netbeans. Or Windows Notepad.
 
Sheriff
Posts: 22815
132
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't fully agree. While most people associate Eclipse with Java development, it comes in a variety of packages: https://www.eclipse.org/downloads/packages/. For instance, there's Eclipse for C/C++ and Eclipse for PHP. Technically you can use those for Java programming, but you'll probably miss a lot of tools etc. Eclipse possibly isn't even capable of compiling the code.
 
Tim Holloway
Saloon Keeper
Posts: 28313
207
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rob Spoor wrote:I don't fully agree. While most people associate Eclipse with Java development, it comes in a variety of packages: https://www.eclipse.org/downloads/packages/. For instance, there's Eclipse for C/C++ and Eclipse for PHP. Technically you can use those for Java programming, but you'll probably miss a lot of tools etc. Eclipse possibly isn't even capable of compiling the code.


The point here, however is that A) the question wasn't about "Eclipse Java", but "Java Eclipse". B) Eclipse never even factored in to the actual question.

Please realize that my self-assigned duty here at the Ranch is to be nit-picky about things as a reminder that computers are the ultimate nit-pickers and that careless use of terminology can lead to misconceptions and error.

I'm certainly not the one to be told about the multi-faceted nature of Eclipse. I've used it as an IDE for Python, Javascript, shell scripting, C/C++ and Arduino development and I think once even COBOL. It''s one of the reasons it's my preferred IDE.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic