Re: executing a method in main class
Hey guys Sory for disturbing i need some help about an exampe that i made if you can help me up i need hel with main for this example:
=============>public class Student {
private String name = " ";
private String course = " ";
public Student (String studentName, String studentCourse)
{
name = studentName;
course = studentCourse;
}
public String getName ( )
{
return name;
}
public void setName (String studentName)
{
name = studentName;
}
public String getCourse ( )
{
return course;
}
public void setCourse (String studentCourse)
{
course = studentCourse;
}
}
What it was asked me to do is to make e program in java with a class called Student with to methods one that set the name of student and the other the returns it so i made those methods but i need hel in the main can you help plssss is very important for me at the school thnnxxx i'm waitin for you answers :)
Re: executing a method in main class
Quote:
i need hel in the main
Please explain what you need help with. I don't see a main() method in your code.
Re: Hellow i need some help plssss if you can help me.Read the Description.
[Code] [/ Code] tags. Put them around your code so that it's easy to read.
Quote:
i need help in the main
You'll need to be more specific than that - are you encountering an error in your code? You didn't even show us your main method.
Finally, this isn't a site that does your homework for you. Show us what you've gotten so far, and where you're stuck, and then we can help.
Re: executing a method in main class
Re: executing a method in main class
Quote:
Originally Posted by
Diargg
Double posted. Merge?
Merged. TauJVProgramer, don't double post and don't use the browser's back button to edit your posts as that creates multiple submissions.
Also, go through these:
Forum Rules
http://www.java-forums.org/forum-gui...w-members.html
BB Code List - Java Programming Forum
db
Re: executing a method in main class
Re: executing a method in main class
Also sent out as a private message, I assume spammed to many people. For somebody who is "sory for disturbing", you sure did create quite a lot of extra work for other people.
Re: executing a method in main class
This message was again sent as a private message. Please stop doing that. Respond to the advice you received, and we'll go from there.