Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Achupa

Hi, I have this problem to solve [quote]Create a set of tables to store data for an address book (contact) application. Bare in mind the following design criteria. * The application will be used by multiple people so the database should also store a list of users. * The people …

Member Avatar for verruckt24
0
189
Member Avatar for Achupa

Hi, I have an assignment that's giving me some problem: [quote] "1.Add methods to your Human that return collections of arms and legs. implement these methods by iterating through the collection of limbs and checking what type of limb they are. Note that you will need to use the instanceOf …

Member Avatar for stultuske
0
832
Member Avatar for Achupa

Hi, I had posted this question before and I did appreciate the response I got. However I still need some little help as: [B]1.In the addMovieGoers method check that every member of the collection is a human and that they are old enough to watch the movie, if not throw …

Member Avatar for sillyboy
0
180
Member Avatar for janamrob

How can I use the Exceptions I have created below in the Cinema class? [B]//IllegalAgeException class[/B] [CODE] public class IllegalAgeException extends Exception { /** * Creates a new instance of <code>IllegalAgeException</code> without detail message. */ String exception; public IllegalAgeException() { exception="Unknown"; } /** * Constructs an instance of <code>IllegalAgeException</code> with …

Member Avatar for javaAddict
0
162
Member Avatar for Achupa

Hi, can someone help me modify this code to achieve the following: Add methods to your Human that return collections of arms and legs. implement these methods by iterating through the collection of limbs and checking what type of limb they are. Note that you will need to use the …

Member Avatar for stultuske
0
121
Member Avatar for Achupa

Can someone help me modify the code below to do the following: Ensure that your mammal has a [B]private property which is an collection of limbs[/B] and [B]protected methods to add, remove and retrieve the limbs[/B]. You need to pass a limb not a list to the methods for adding …

Member Avatar for dickersonka
0
149
Member Avatar for Achupa

Hi, I have a Cinema class as shown in the code below. However I'm required to create my own exceptions and pass them to the controlling module (here method with scenarios). After an exception occurs the code should stop execution of current scenario and go to another one. The code …

Member Avatar for orko
0
127
Member Avatar for Achupa

Hi, I have a small question regarding arrays. I have the class Family below: [CODE] import java.util.ArrayList; import java.util.Collection; import java.io.*; public class Family { private Adult father; private Adult mother; private Child[] children; private Dog ourDog; private Cats ourCat; private Rabbit ourRabbit; int Age; public Family() { } public …

Member Avatar for ~s.o.s~
0
129
Member Avatar for Achupa

[B]Hi, I'm trying to use a map in my application. the class MovieRating which contains the map is as below:[/B] [code] import java.util.*; public class MovieRating { private Map ageMap = new HashMap(); private String movieRating; public MovieRating() { ageMap.put("PG", 18); //parental Guidance ageMap.put("G", 4); //general viewing ageMap.put("A", 27); //Adult …

Member Avatar for stultuske
0
204
Member Avatar for Achupa

Thank you for your previous help. However I have another question: I have three classes MovieRating class, Adult class, and Child class. The Child class and Adult class both have a method canWatchmovie(MovieRating mrating) in the Adult class the method always return true while in the Child class we must …

Member Avatar for stultuske
0
98
Member Avatar for Achupa

Hi, I have a method that checks whether Objects in a Collection are Human and whether they are of certain age. I have three different classes for Human, Adult and Child. the code for the method is in a different class called Cinema class. the code is as: //THIS METHOD …

Member Avatar for stultuske
0
101