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