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 5954673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:00:16+00:00 2026-05-22T18:00:16+00:00

hi i am new to java.After so research about what i am facing, i

  • 0

hi i am new to java.After so research about what i am facing, i try post to ask some question.

recently i am doing a text analyse software.
and i try to get done with a 1*3 dimensional array.
something like

[0]
   [][][]
[1]
   [][][]
[2] 
   [][][]
[3]
   [][][]

the three column in the second dimension of each is use for saving the details of the first dimension.
but the second dimension array size is yet unknown which mean that, idont know how many i will find from the text that i am gonna search.it will increase once the target found.
is this the stupid way for doing this.
i know java can declare array like int [][] abc = new [5][].
but it just can declare only for one unknown dimension.
then i try to do something like this

String [] abc = new string [4]

then i first make a presumption that the size is that in the first column in the second dimension.

abc[0] = String [10][][] inside1;
abc[1] = String [10][][] inside2;
abc[2] = String [10][][] inside3;
abc[3] = String [10][][] inside4;

but still getting error when i compile it.

how can i do the declaration or there got better to done this easy.
if i miss any post in the internet about this. please show me any keyword or link for me to take a look.

  • 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-05-22T18:00:17+00:00Added an answer on May 22, 2026 at 6:00 pm

    If you’re trying to parse a text file and you know what each column signifies, you should create a new object which contains that data. Arrays of arrays are an unnecessarily painful hack and your code is much more maintainable if you just do what Java is designed to be used for–write a class.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a Java/Flex project that I'm building using Maven. After doing some research
Eclipse and MyEclipse create new Java files with an extra blank line after the
For a new Java web project I thought about using: Eclipse as IDE Mercurial
After some research: How to create a Zip File and some google research i
Doing a small project I have received some Java code that I should rewrite
I'm new to Java after working for a few years in PHP and I'm
I had a java project and after lots of research I managed to convert
im new to java. the standard code that is created after i created a
After some research, it seems like I would have to start by programming an
How can I switch to a new java project after using New... and close

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.