Results 1 to 3 of 3
Thread: help w/ method calling
- 01-12-2010, 07:15 AM #1
Member
- Join Date
- Nov 2009
- Location
- California
- Posts
- 55
- Rep Power
- 0
help w/ method calling
Hey, does anyone know how to fix my code?
I have errors on System.out.println ("Array before reversal: " + (AU.display(mainArray)));
and
AU.reverse(int[] mainArray);
and
Java Code://b. Displays the values of the array using the display() method (which you must write). System.out.println ("Array before reversal: " + (AU.display(mainArray))); //c. Reverses the values in the array using the reverse() method (which you must write). AU.reverse(int[] mainArray); System.out.println ("Array being reversed . . .");
- 01-12-2010, 07:17 AM #2
Member
- Join Date
- Nov 2009
- Location
- California
- Posts
- 55
- Rep Power
- 0
It says for the 1st problem that:
- The static method display(int[]) from the type ArrayUtilities should be accessed in a
static way
what does it mean to be accessed in a static way?
My teacher made us make all our methods static by the way, so these are accessing static methods
- 01-12-2010, 07:55 AM #3
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Similar Threads
-
calling method from main method
By bob_bee in forum New To JavaReplies: 4Last Post: 10-02-2009, 05:30 PM -
Need help calling from a different method
By Mayur in forum New To JavaReplies: 6Last Post: 03-08-2009, 09:27 PM -
Calling a method in a different class from within a method problem
By CirKuT in forum New To JavaReplies: 29Last Post: 09-25-2008, 07:55 PM -
method calling?
By frejon26 in forum New To JavaReplies: 4Last Post: 01-25-2008, 03:38 AM -
Help with Calling a method
By Albert in forum New To JavaReplies: 3Last Post: 07-10-2007, 03:27 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks