Question: Can someone help with this and I am using jGRASP editer 1) public class CallPerson { public static void main(String [] args) { String userName

Can someone help with this and I am using jGRASP editer

1)

public class CallPerson { public static void main(String [] args) { String userName = "Sam"; Person person1 = new Person(); person1.setFirstName(userName); System.out.print("You are " + person1.getFirstName()); return; } }

2)

Can someone help with this and I am using jGRASP editer 1)

PARTICIPATION ACTIVITY 7.2.6: Class example: Right triangle. Complete the program involving a class for a right triangle Current file: Load default template... RightTrianglejava 2 import java.lang.Math 4 public class RightTriangle { private double side1; 6 // FIXME: Declare side2 7 8 public void setSide1(double side1Val) { side! = side!Val; 10 return; 12 13 14 I/ FIXME: Define setSide20 15 16 17 18 19 20 public double getHypotenuseO I return -1.0; // FIXME: temporary until side2 defin // return Math.sqrt((side1 side1) + (side2 sid

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!