Results 1 to 8 of 8
- 05-14-2012, 06:44 PM #1
Member
- Join Date
- May 2012
- Posts
- 1
- Rep Power
- 0
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 :)
- 05-14-2012, 06:53 PM #2
Re: executing a method in main class
Please explain what you need help with. I don't see a main() method in your code.i need hel in the mainIf you don't understand my response, don't ignore it, ask a question.
- 05-14-2012, 07:14 PM #3
Senior Member
- Join Date
- Feb 2012
- Posts
- 117
- Rep Power
- 0
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.
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.i need help in the main
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.
- 05-14-2012, 07:14 PM #4
Senior Member
- Join Date
- Feb 2012
- Posts
- 117
- Rep Power
- 0
Re: executing a method in main class
Double posted. Merge?
- 05-14-2012, 07:52 PM #5
Re: executing a method in main class
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
Guide For New Members
BB Code List - Java Programming Forum
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 05-14-2012, 10:28 PM #6
Re: executing a method in main class
If you don't understand my response, don't ignore it, ask a question.
- 05-15-2012, 06:48 PM #7
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.
How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 05-30-2012, 05:26 PM #8
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.
How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
Similar Threads
-
Can a class with the main method in it extend?
By Army in forum New To JavaReplies: 2Last Post: 04-12-2012, 04:15 PM -
Class Communication/ Main Method
By javaNewblet in forum New To JavaReplies: 5Last Post: 11-14-2011, 07:43 AM -
main method not found in class
By eLancaster in forum New To JavaReplies: 5Last Post: 02-09-2011, 08:48 AM -
Running main method class from another main class
By tlrocketman in forum New To JavaReplies: 3Last Post: 12-06-2010, 08:30 AM -
executing a method in main class
By rangers27 in forum New To JavaReplies: 3Last Post: 07-19-2008, 05:04 AM


2Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks