Results 1 to 2 of 2
Thread: Using the method copyOfRangle ??
- 01-15-2011, 08:45 PM #1
Member
- Join Date
- Dec 2010
- Posts
- 21
- Rep Power
- 0
Using the method copyOfRangle ??
Hi,
I'm trying to use the method:
to copy specified values to another arrayJava Code:public static int[] copyOfRange(int[] original, int from, int to);
here is my code:
Java Code:// I have an array a of integers but the error in this line int [] b = Arrays.copyOfRange(a,0,n);
but it gave me a compile error and I don't know why !!
the error is:
Java Code:cannot find symbol symbol : method copyOfRange(int[],int,int) location: class java.util.Arrays int [] b = Arrays.copyOfRange(a,0,n);
any help will be highly appreciated :o
- 01-15-2011, 10:08 PM #2
Senior Member
- Join Date
- Mar 2010
- Posts
- 953
- Rep Power
- 4
Similar Threads
-
Thread problem, calling method in run method
By majk in forum Threads and SynchronizationReplies: 4Last Post: 09-27-2010, 11:40 AM -
Turning Recursion Method into Iterative method
By mattakuevan in forum New To JavaReplies: 9Last Post: 06-15-2010, 06:46 AM -
method not abstract, does not override actionperformed method.
By Theman in forum New To JavaReplies: 2Last Post: 03-26-2010, 05:12 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 -
cannot call private method from static method
By jon80 in forum New To JavaReplies: 3Last Post: 05-07-2008, 08:37 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks