Computer Science Canada Return string from a method |
Author: | umaza [ Wed Feb 22, 2012 10:44 pm ] | ||
Post subject: | Return string from a method | ||
How do I return string from a method, I tried following code bellow as a test, it compiles but it doesn't do anything
I am just testing and before I progress, I want to be able to accomplish this. I have an assignment and my final goal is: http://webteach.net/ics3u/methods/methodLab.html |
Author: | Insectoid [ Wed Feb 22, 2012 10:46 pm ] |
Post subject: | RE:Return string from a method |
It's not doing anything because you're not doing anything with it. Try System.out.println(triangle(4,4,4)); |
Author: | joshm [ Thu Feb 23, 2012 10:46 am ] | ||
Post subject: | Re: Return string from a method | ||
Something like this
|