String Array Problem ~ Java Language.?
-
So, I have an assignment where I have to create a parallel array, except I cannot get my array to store my strings and feed them back out using a while loop. The point is to create an array that doesn't have a specified size and enter names into it until the user enters "quit". Then the names should appear on the screen. Every time I do this, I get stuck with an error message. Can someone please help me?
-
Answer:
In Java, it is impossible to create an array that does not have a specified size. All Java arrays have a finite, specified size. If you need something that works like an array but does not have a specified size, that's what the ArrayList class is for. It would be easier to help if you could post the code you've written so far.
Silent at Yahoo! Answers Visit the source
Related Q & A:
- How to get 'name' attribute of item of string-array?Best solution by Stack Overflow
- How do I randomly select a string from an array in swift?Best solution by Stack Overflow
- How to hashMap an array in Java?Best solution by Stack Overflow
- How to search for a particular string in a text file using java?Best solution by Stack Overflow
- Is java or visual basic a machine level, low level, high level or binary level programming language?Best solution by Quora
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.