Automation QA Testing Course Content

Java - Method Excercise -1

Call below methods under main() in MethodPractice class?
String name;
1)
double sqr(double a)

{ return a * a; }

2)
void doubleWrite(String s) { System.out.println(s); System.out.println(s); }

3)correct the below code to print name value
String getName() { }

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.