Results 1 to 3 of 3
- 10-19-2012, 01:40 AM #1
Member
- Join Date
- Sep 2012
- Posts
- 13
- Rep Power
- 0
mutator method...something is wrong
// Create a new Student variable and initialize using the default constructor.
// Prompt the user for the first name, last name, major and gpa using dialog boxes
// and store the user entered values in local variables.
// Change the contents of the object to the values in the local variables using the
// mutator methods.
// Print the Student object using the dialogPrintStudent function.
does this answer the question above??
public void showdetail(){
System.out.println("First Name: " + s1.setFname);
System.out.println("Last Name: " + s1.setLname);
System.out.println("gpa: " + s1.setGpa);
System.out.println("major: " + s1.setMajor);
}
}
- 10-19-2012, 02:29 AM #2
- 10-19-2012, 04:22 AM #3
Re: mutator method...something is wrong
lazarat, you have been told about the code tags in both the threads you started earlier. If you persist in posting unformatted code, your may be banned for a period.
Kindly edit your post and add the code tags. If the forum software doesn't allow you to edit, post a reply with properly formatted code.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
what is wrong with this shuffle method??
By javaa in forum New To JavaReplies: 3Last Post: 09-06-2012, 02:30 AM -
Mutator Method help
By Dex in forum New To JavaReplies: 2Last Post: 07-29-2012, 07:59 AM -
What's wrong with this method?
By jazzermonty in forum New To JavaReplies: 2Last Post: 01-17-2011, 07:16 PM -
Mutator method for a calculator
By Krakatau7 in forum New To JavaReplies: 15Last Post: 01-10-2011, 11:15 PM -
mutator method
By dirtycash in forum New To JavaReplies: 7Last Post: 11-22-2007, 10:29 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks