Can i show any other word instead of "null" in an array ?
Xufyan -4 Posting Whiz
Recommended Answers
Jump to PostGet the value from the array into a String variable. Test if it is null and if so, set it to "No". Then pass that String to who ever wants the contents of the array at those index values.
Jump to Postit is not working
Can you explain?
I can NOT make comments on your code unless you post it.String test = anArray[1][5]; // get the element from the array if(test == null) // test if the element is null test = "No"; // change the value …
Jump to PostString DnP [][] = new String [9][5]; .... String test = DnP[9][5];
What is the maximum index value for the first dimension of the DnP array?
What is the value of the index causing this: ArrayIndexOutOfBoundsException: 9
Change this line to test for null before …
Jump to PostPlease show all of the code in front of( lines 1-45) where the errors occurred.
Jump to PostWhat happened to lines 1-45 for the error that you posted earlier?
The error message showed that the error occured on line 46Test.java:46: not a statement
This last code you posted only has 8 lines.
?????
All 17 Replies
jon.kiparsky 326 Posting Virtuoso
Xufyan -4 Posting Whiz
NormR1 563 Posting Sage Team Colleague
Xufyan -4 Posting Whiz
NormR1 563 Posting Sage Team Colleague
jon.kiparsky 326 Posting Virtuoso
Xufyan -4 Posting Whiz
NormR1 563 Posting Sage Team Colleague
Xufyan -4 Posting Whiz
NormR1 563 Posting Sage Team Colleague
Xufyan -4 Posting Whiz
NormR1 563 Posting Sage Team Colleague
Xufyan -4 Posting Whiz
NormR1 563 Posting Sage Team Colleague
Xufyan -4 Posting Whiz
NormR1 563 Posting Sage Team Colleague
Xufyan -4 Posting Whiz
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.