Results 1 to 2 of 2
  1. #1
    tommyyyy is offline Member
    Join Date
    Mar 2009
    Posts
    10
    Rep Power
    0

    Default Declare ListArray

    How to declare the listarray header to return the listarray to other method

    public static String[] init()throws IOException

    return testArray;

    i know that is wrong, how to correct it

  2. #2
    faisalcmpm is offline Member
    Join Date
    Feb 2009
    Posts
    22
    Rep Power
    0

    Default

    public static List[] init()throws IOException {
    List[] testArray = null;
    //do ur business
    return testArray;
    }

Similar Threads

  1. How to declare and initalize application space variables
    By thagentleman in forum New To Java
    Replies: 2
    Last Post: 10-11-2008, 07:19 PM
  2. Replies: 3
    Last Post: 09-24-2008, 11:59 PM
  3. Declare methods in a class
    By Adiel224 in forum New To Java
    Replies: 5
    Last Post: 09-19-2008, 10:38 AM
  4. Where is it best to declare swing components?
    By MacNstuff in forum AWT / Swing
    Replies: 1
    Last Post: 02-06-2008, 12:59 AM
  5. Replies: 1
    Last Post: 08-06-2007, 02:17 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
  •