Java Question on instructions for Java

  • Thread starter Thread starter camel-man
  • Start date Start date
  • Tags Tags
    Java
Click For 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.
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

Replies
3
Views
3K
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 3 ·
Replies
3
Views
6K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
12K
  • · Replies 18 ·
Replies
18
Views
9K