User Profile

Collapse

Profile Sidebar

Collapse
ljungmichel
ljungmichel
Last Activity: Feb 19 '07, 01:18 PM
Joined: Feb 19 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ljungmichel
    replied to Arrays
    in Java
    Oh, I'm sorry. I actually have done that. I didn't realize that I had copied and pasted something weird like that... Dunno why it came out like that.

    I found out that I should create class that defines a person instead of creating 3 separate arrays for the last name and first name and birth date. But I honestly don't know how to even start doing that. I could really use some help...
    See more | Go to post

    Leave a comment:


  • ljungmichel
    replied to Arrays
    in Java
    Code:
    import javax.swing.JOptionPane;am?", "Number of people", JOptionPane.QUESTION_MESSAGE);
    
    	numPeople = Integer.parseInt(numberOfPeople);
    			
    	int count = 0;
    	String[] firstName = new String[numPeople];
    	String[] lastName = new String[numPeople];
    	int[] birthdate = new int[numPeople];
    			
    			
    		if(count <= numPeople)
    		{
    That's all I have so...
    See more | Go to post

    Leave a comment:


  • ljungmichel
    started a topic Arrays
    in Java

    Arrays

    I really need some help with my project. It should be a very easy program, but no matter what I read online or in my books, I don't seem to be able to grasp the idea of arrays. I don't get how to use them at all.

    Here's the program:

    Write a program that will accept up to ten names (first and last names) and associated birth-date. Your program should ask the user for how many people s/he wants to enter and then read the...
    See more | Go to post
No activity results to display
Show More
Working...