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...
User Profile
Collapse
-
That's all I have so...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) {Leave a comment:
-
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...
No activity results to display
Show More
Leave a comment: