Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8542029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:57:56+00:00 2026-06-11T11:57:56+00:00

I am getting an error on this line: public int[][] mySpiros; The error is

  • 0

I am getting an error on this line:

public int[][] mySpiros;

The error is as is:

Field Spirograph.myList.mySpiros is never assigned to, and will always have its default value null.

Now this line is written in a class. I only wanted to create a double array so I can store my future parameters for each drawings (spirographs) generated by the user.

Edit: Seems like instantiating multiple arrays of integers is not Microsoft’s favorite action:

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T11:57:57+00:00Added an answer on June 11, 2026 at 11:57 am

    You’re creating array of arrays so you need to instantiate arrays like:

    public int[][] mySpiros;
    
    //create three reference variables to hold array references
    mySpiros=new int[3][];
    
    mySpiros[0]=new int[4];
    mySpiros[1]=new int[] {11,22,33,44};
    mySpiros[2]=new int[40];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting the object reference error in this line: emp[count].emp_id = int.Parse(parts[0]); in
I am getting this Nullable object must have a value. error in this line:
I'm getting a compiler error for this line: Collections.sort(terms, new QuerySorter_TFmaxIDF(myInteger)); My customized Comparator
I keep getting an expected identifier error at this line in my code =/
I keep getting this error in the $('#savetickets-list') line. I want to dynamically add
I am getting this error: Data at the root level is invalid. Line 1,
I am getting ERROR when I am running this program at the line static
I am getting an error Incorrect syntax near ',' for this query on line
I am getting a nullpointerexception error on this line btn10.setOnClickListener(this); this is the entire
I'm getting this error at this line: Object[] results = (Object[])stmt.getArray(1).getArray(); Not sure what

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.