• Post Reply Bookmark Topic Watch Topic
  • New Topic

Maps in java  RSS feed

 
adebari olalekan
Ranch Hand
Posts: 61
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please can anyone tell me what is wrong in my code; it refuse to run.:



this is the main:



and it brings this error:





thanks
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

First, read this...

https://coderanch.com/wiki/660183/Fix-Compiler-Errors-Running-Application

It is much harder to figure out compiler errors by trying to run the application, than to use the compiler error messages... so, don't do it.


As for the error, from the message provided, you are calling instance methods of the Map class, but are failing to provide an instance. To get more information, I recommend using the compiler to compile the application, and report the compiler error message here. Again, do not run a program that does not compile!

Henry

 
Carey Brown
Saloon Keeper
Posts: 3318
46
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
answered in your other post
https://coderanch.com/t/672177/java/Maps-java-refuse-iterate
 
adebari olalekan
Ranch Hand
Posts: 61
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Henry Wong wrote:
First, read this...

https://coderanch.com/wiki/660183/Fix-Compiler-Errors-Running-Application

It is much harder to figure out compiler errors by trying to run the application, than to use the compiler error messages... so, don't do it.


As for the error, from the message provided, you are calling instance methods of the Map class, but are failing to provide an instance. To get more information, I recommend using the compiler to compile the application, and report the compiler error message here. Again, do not run a program that does not compile!

Henry

appreciated
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!