• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multidimensional array

 
King Goddard
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15219
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
King Goddard
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please please, post some more code. It tells so much more than words.
 
King Goddard
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah that was the problem I double checked. Thanks any way.
 
Rohnit Jain
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kindly explain your problem clearly with code..
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@last two posters: The question was resolved--no need to continue asking for information.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sebastian Janisch wrote:What is wordvalue ? Why doesn't it start with a capital letter ?

Why would it, it's a variable?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic