The Artima Developer Community
Sponsored Link

Java Answers Forum
two question for java

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
wu peng

Posts: 1
Nickname: oiuk
Registered: Nov, 2004

two question for java Posted: Nov 24, 2004 6:19 AM
Reply to this message Reply
Advertisement
Hello , i am newer for java . now i have two questions for java .
( 1) what is difference between sun java and Mirsoft j++ 6.0 . now i have textbooks which is relevant to sun java . however , i find there is obviously different to j ++ . could anyone introduce basic j programming for j ++ 6.0 ( better give name and author )

( 2) i have Array topic which is about j ++ .

Create 4 arrays containing the data :


2222 alligator o 10

3333 monkey M 3

4444 koala S 8

0060 buffalo M 5

1111 shark F -1

1112 elephant M 6

1117 dolphin M 7

1118 whale M 9

3737 kangaroo S -1

1121 tiger M 11

6666 crocodile O 12

6677 hippopotomus M -1

6678 snake O 13

6679 lizard O -1

These arrays represent Animal Number, Animal Name, type of Animal and Link.





Also create 3 arrays containing type of Animal, Animal Name and Starting_position:



M Mammal 1

S Marsupial 2

F Fish 4

O Other 0


This means that the first Mammal is at position 1 of the first set of arrays. The link provides the place of the next element of the linked list. The last element in each link points to position -1.



The Marsupials are at positions 2 and 8.



Write a Java program which will accept either Animal Number or type of Animal.



Enquire into the arrays.



If the user enters an Animal Number, either display details about the Animal, or give an error message if the Animal is not found.



If the user enters a type of Animal, either display all the Animals of that type, or give an error message if the type is not found.





Provide Clear and End buttons

could someone write code for me .thanks

Topic: AWT FileDialog to select directories Previous Topic   Next Topic Topic: Two Packages in 1 Directory

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use