My professor wants my duck to quak. I have the basic idea down but I am having trouble getting my classes in order. The program should print "QUAK" when run. Please help.
public class Lab24B { public static void main(String[] args) { new Duck().sayHello(); } } private class Duck { public String sayHello(String Quak) { Quak = "QUAK"; return Quak; } }
Ryan Newcombe
Greenhorn
Joined: Oct 02, 2002
Posts: 24
posted
0
I got it. Thanks anyways. Ryan Newcombe
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.