Java Question on instructions for Java

  • Thread starter Thread starter camel-man
  • Start date Start date
  • Tags Tags
    Java
AI Thread Summary
The discussion revolves around the implementation of a "Create" event in a form, likely referring to a graphical user interface (GUI). Participants clarify that this event requires a handler to execute when triggered. The task involves adding three instances of an animal class to a list, although details about the form's structure and the list's location remain unclear. There is uncertainty regarding whether the list exists within the form class or needs to be created separately. Additionally, participants note that a definition for the animal class may be provided or must be created by the user. Overall, the discussion highlights the need for clearer specifications regarding the form and event handling process.
camel-man
Messages
76
Reaction score
0
Can someone tell me what they think this is referring to?

On the create event for a form add 3 animal instances to a list.

A form just meaning a GUI? and what does it mean on the create event? Clicking something to add the animals perhaps?
 
Technology news on Phys.org
The information you're providing is pretty sketchy but ...
Apparently there is a procedure for handling a "Create" event - perhaps a "Create Form" event. In that procedures a form object is created. Apparently there is an animal class and a list that can hold animal object or pointers to animal objects. It isn't specified whether the Form includes this list or if the lists exists elsewhere. If the list doesn't already exist, them perhaps you're suppose to add it to either the forum class or to the class of the object that is handling the event.
 
camel-man, there's a lot here that is not clear, such as exactly what a "form" is (i.e., exactly which Java class).

"on the create event for a form" - you need to write a handler for the Create event. When that event is fired, your event handler begins executing

"add 3 animal instances" - you are either given a definition for the animal class, or you have to write it yourself. Either way, in the body of your event handler for the create event, add three instances of the animal class to whatever list you need to be working with.

Hope that helps, but your problem description is pretty vague.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Replies
4
Views
5K
Replies
12
Views
2K
Replies
10
Views
2K
Replies
2
Views
2K
Replies
8
Views
11K
Replies
18
Views
9K
Back
Top