cannot invoke get_Array calss in the main method...any suggestions with explaination?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TeresaMNelson
    New Member
    • Dec 2010
    • 1

    cannot invoke get_Array calss in the main method...any suggestions with explaination?

    import java.util.Scann er;

    public class labNumEight{
    public static void main(String[] args){
    int[] teresaArray = new int[4];
    Scanner input = new Scanner(System. in);
    System.out.prin t("Enter a number: ");
    teresaArray[i] = input.nextInt() ;
    teresaArray[i] = numberEight.get _Array(int[]);
    }
    }

    public class numberEight{
    public static double get_Array (int[] teresaArray){
    for (int i = 0; i < teresaArray.len gth; i++){
    System.out.prin t(teresaArray[i]);
    }
    for (int i = 0; i < teresaArray.len gth; i++){
    System.out.prin t(teresaArray[i] + " ");
    }
    return get_Array;
    }
    }
  • Sean Pedersen
    New Member
    • Dec 2010
    • 30

    #2
    Can you be more specific on the error? What's the error say? That code doesn't make sense; What is it supposed to do?

    Comment

    Working...