Java Beginners

Moderators: zibadian
Number of threads: 1285
Number of posts: 2739

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Creating setter method for multiple parameters Posted by sue1 on 27 Jun 2012 at 9:27 AM
I am trying to write setter method for 2 parameters and need help.
My code:

private String fname_box;
private String lname_box;

This is the getter method;

public Rect getPoorQualityBoundingBox() {
return Rect.fromArray(LTRBUtil.unionLTRB(lname_box, fname_box));
}


public Rect getPoorQualityBoundingBox(String fname_box, String lname_box) {

How do I set fname_box and lname_box here?

}



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.