Results 1 to 5 of 5
  1. #1
    aqeel2010 is offline Member
    Join Date
    Jan 2011
    Posts
    12
    Rep Power
    0

    Default Array cannot be resolved

    I am having this issue with this code "ArrayUtil cannot be resolved"



    XML Code:
    import java.util.Arrays;
    
    public class InsertionDemo{
    
        public static  void main(String[]args)
        {
          int[] a = ArrayUtil.randomIntArray(20,100);
          
          System.out.println(Arrays.toString(a));
          
            Insertion1 insert = new Insertion1(a);
            insert.sort();
            System.out.println(Arrays.toString(a));
        }
    
    
    }
    any help please
    Last edited by aqeel2010; 10-07-2011 at 08:04 AM.

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default Re: Array cannot be resolved

    You will need to import the ArrayUtil class if you are going to use it.

  3. #3
    aqeel2010 is offline Member
    Join Date
    Jan 2011
    Posts
    12
    Rep Power
    0

    Default Re: Array cannot be resolved

    I did import it , and you can see in the code but the problem still exist

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,519
    Blog Entries
    7
    Rep Power
    20

    Default Re: Array cannot be resolved

    Quote Originally Posted by aqeel2010 View Post
    I did import it
    Really? where?

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  5. #5
    aqeel2010 is offline Member
    Join Date
    Jan 2011
    Posts
    12
    Rep Power
    0

    Default Re: Array cannot be resolved

    Thanks my friend , I fixed the problem. The problem because of ArrayUtil class.

    thanks for help

Similar Threads

  1. HttpServlet Cannot be resolved to a type
    By chizbox in forum Eclipse
    Replies: 3
    Last Post: 07-01-2012, 05:09 PM
  2. HttpServletRequest cannot be resolved-- Help me
    By hphuoc in forum Java Servlet
    Replies: 1
    Last Post: 04-26-2011, 09:23 AM
  3. HibernateUtil cannot be resolved
    By fierof2 in forum Advanced Java
    Replies: 14
    Last Post: 02-01-2011, 02:24 PM
  4. Progress bar no updating resolved
    By Haarp425 in forum Threads and Synchronization
    Replies: 2
    Last Post: 06-25-2010, 02:28 AM
  5. Filter cannot be resolved to a type??
    By Harrie_KalaChakra in forum Eclipse
    Replies: 1
    Last Post: 01-15-2010, 09:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •