hello.i have a homework in java wich asks to create this program:
there would be n persons who are going to rate songs.
for n persons we will ask their name,surname,sex and age.after this each person will rate(vote) with points the song we have given to them.there are 15 songs and they are constant.at the end pint the most 10 rated song...
thnx :)
ndrichim
0
Newbie Poster
Recommended Answers
Jump to Posthello.i have a homework in java wich asks to create this program:
there would be n persons who are going to rate songs.
for n persons we will ask their name,surname,sex and age.after this each person will rate(vote) with points the song we have given to them.there are 15 songs …
Jump to Posti would like you to help me build it.if you can :)
This is and never has been a homework service center. It works on the basis you show us code or asks questions and we either show or help you to gain the knowledge in getting …
Jump to Postand to be a bit more specific: the amount of help you will receive also depends on how you define "help me build it".
btw, yes, yes we can, but we are not going to spend our time making your teacher believe you know what you are doing without seeing …
Jump to Postok then.how can we use the constructer examle(String name[],String surname[], int age[]){
....}
in void main ???a constructor belongs in the class who's name it posses and not in any method...
public class X { public X(String name[],String surname[], int age[]) { } public static void …
Jump to Postbig no.
you can't get info from 'a void'. a method that has void as return type, returns nothing.you'll need to use get- and set-methods, and I assume the names by themselves are quite self-explaining
All 17 Replies
DavidKroukamp
105
Master Poster
Team Colleague
Featured Poster
ndrichim
0
Newbie Poster
DavidKroukamp
105
Master Poster
Team Colleague
Featured Poster
stultuske
1,116
Posting Maven
Featured Poster
ndrichim
0
Newbie Poster
DavidKroukamp
105
Master Poster
Team Colleague
Featured Poster
ndrichim
0
Newbie Poster
stultuske
1,116
Posting Maven
Featured Poster
ndrichim
0
Newbie Poster
stultuske
1,116
Posting Maven
Featured Poster
ndrichim
0
Newbie Poster
stultuske
1,116
Posting Maven
Featured Poster
Philippe.Lahaie
42
Posting Whiz in Training
stultuske
1,116
Posting Maven
Featured Poster
Philippe.Lahaie
42
Posting Whiz in Training
jwenting
1,889
duckman
Team Colleague
Philippe.Lahaie
42
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.