Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Array in java

807605Aug 7 2007 — edited Aug 7 2007
Hi,

I wanted to ask if it is possible to make an array in java that can be called like this:
 System.out.println(myArray["dog"]);
 System.out.println(myArray["cat"]);
 System.out.println(myArray["mouse"]);
If yes how? :D
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 4 2007
Added on Aug 7 2007
5 comments
92 views