File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes multidimensional array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "multidimensional array" Watch "multidimensional array" New topic
Author

multidimensional array

King Goddard
Greenhorn

Joined: Nov 29, 2009
Posts: 11
I have been trying to get a multidimensional array to work, but it isn't and I don't know why. I need some help.

Should this work?


King Goddard
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
What is wordvalue ? Why doesn't it start with a capital letter ?

Anyway, the problem is that + only works with Strings and primitives (except boolean).

What is it you want to achieve with your code ?


JDBCSupport - An easy to use, light-weight JDBC framework -
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14278
    
  21

What does "it doesn't work" mean here? Do you get a compiler error or an error while running the program? If so, then what is the error? How is the wordvalue array declared?


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
King Goddard
Greenhorn

Joined: Nov 29, 2009
Posts: 11
my values aren't being carried over so I can add the value from my multidim array. I think the problem is because I am creating the array inside the loop which I think is re-creating it. let me know if I am wrong here.
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
Please please, post some more code. It tells so much more than words.
King Goddard
Greenhorn

Joined: Nov 29, 2009
Posts: 11
yeah that was the problem I double checked. Thanks any way.
Rohnit Jain
Greenhorn

Joined: Apr 08, 2010
Posts: 3
Kindly explain your problem clearly with code..
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

King Goddard wrote:I think the problem is because I am creating the array inside the loop which I think is re-creating it. let me know if I am wrong here.


Yes. I think you are wrong here . why only *Thinking* . why cant you debug ?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

@last two posters: The question was resolved--no need to continue asking for information.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Sebastian Janisch wrote:What is wordvalue ? Why doesn't it start with a capital letter ?

Why would it, it's a variable?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: multidimensional array