Type: Posts; User: BigDadd215
Search took 0.01 seconds.
March 6th, 2014, 08:36 AM
The main class looks builds the objects of business class, from there it passes to the business class to ask the questions..... From there is where I wanted to build the ArrayList.....
March 6th, 2014, 07:42 AM
I will need to call, for example, all the business contacts.... It should print out all First Names, Last Names, Addresses, etc..
March 6th, 2014, 05:02 AM
Would it make sense for me to make a class that is designed to make the arraylist from the objects that the Business class creates?
Kinda like the main called the business class to ask questions...
March 5th, 2014, 07:52 PM
I am lost on your first sentence......
I am sure that I have an issue somewhere, but I have no idea where... That is what I have trying to do...... In the Business class, it receives an input for...
March 5th, 2014, 07:29 PM
I do not get an error when I run the code,.... I just can't get the name Drew to add to the ArrayList.....I am not too sure where to put
If I put in main class, I am told that it could not find...
March 4th, 2014, 08:46 PM
I had it in my Business class but it could not locate it...
March 4th, 2014, 08:31 PM
When the program runs...(for this example) should ask for first name and return the inputed data to the busContact arraylist..... It does not so now I am lost on how to get this in the arratlist.
March 4th, 2014, 08:13 PM
I have decided to start fresh as I was getting to jumbled on this..... I will include what I have so far as I don't know where to go from here. On my Business class that extends the...
March 3rd, 2014, 09:20 PM
I have went to my Business Class (original idea) and tried to make the ArrayList work, but I still seems to be getting errors... I must be missing something????
March 2nd, 2014, 09:45 PM
I have changed my code but I do not think that I am adding to the array.
System.out.println("Please enter your First Name");
February 28th, 2014, 01:16 PM
As soon as I can, I will rerun the code in the complier and give you the error..
The code is supposed ask which kind of contact is, then prompt the the user to enter the information. from there the...
February 28th, 2014, 12:48 PM
//ArrayList<Employee> staff = new ArrayList<Employee>();
//staff.add(new Employee("Harry Hacker", . . .));
* @author Drew1
February 28th, 2014, 11:05 AM
Can you give a real fast example to help point me down the right direction? I am a little confused.
February 28th, 2014, 09:39 AM
What I as trying to do is test my Business by printing the results from creating the objects in the main class........ What I need to do, but am confused on how to..is create an arraylist that I can...
February 28th, 2014, 03:32 AM
Sorry about that...... I guess I have done too much HTML...LOL
I have corrected and it looks MUCH better now.
February 27th, 2014, 05:29 AM
I am having problems returning and using my subclass method returns... I am trying to print out the results but am getting just the space allocation only. Any help will greatly appreciated.
February 27th, 2014, 04:34 AM
I am working on a project that I can't seem to figure out.... I need to call my methods from a sub class to my main class but I seem to stop at the the abstract class and move no...
December 20th, 2013, 11:08 AM
Thank you.... This is what I came up with that worked.
int sum = 0;
for (int i : arr)
sum += i;
December 20th, 2013, 04:22 AM
Once again I am back...LOL
This time I need some help to add the elements of an ArrayList that I have stored in a method.
The code looks a little like this:
public static int...
December 18th, 2013, 12:49 PM
I have it figured out... Thanks for everything and all the advise.
public class GrandChildren
December 18th, 2013, 04:58 AM
What would be an acceptable way to terminate or exit the scanner? Given this section of code
December 17th, 2013, 08:10 AM
The 1 2 3 is what I put in, but I don't receive any output.
December 17th, 2013, 08:01 AM
This is what I get in my console window:
What are the ages of your grand children?
1 2 3
BUILD SUCCESSFUL (total time: 12 seconds)
December 17th, 2013, 07:31 AM
I am not getting an error this time....... I can not get it to print the inputed ArrayList. If I input a series of integers (1 2 3 for example), it does not print out 1 2 3.
December 17th, 2013, 04:29 AM
I understand that I have to use the get() method but I am having difficulties implementing this. any help would be greatly appreciated.
I have attached my modified code:
Click Here to Expand Forum to Full Width