aspose file tools
The moose likes Java in General and the fly likes Problem in filling an two dimensional array please help Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Problem in filling an two dimensional array please help" Watch "Problem in filling an two dimensional array please help" New topic
Author

Problem in filling an two dimensional array please help

Sara Jonasn
Greenhorn

Joined: Jan 10, 2013
Posts: 9
Hi all,

I want to fill a 2-D int array through another array but my code doesn't work and return all elements of array 0.why is it so this?!!! (Red Line ) please help me as soon as possible .



Many Thanks
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3011
    
    9
The input variable in your method is the one you pass as a parameter, not the one declared at the top of your code. So we need to see the code that calls the intionalPermutaion method.

Also, where are tempodd and tempeven declared and initialised ?

And please UseCodeTags when you post any more code.


Joanne
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32599
    
    4
I have added the code tags, but the combination of tabs and spaces makes the indentation inconsistent. I also deleted some excess blank lines.

And welcome to the Ranch
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Problem in filling an two dimensional array please help
 
Similar Threads
Maximum Sum Project!!
copying arrarys into a different class with methods
Image transformations
Bidimensional array to GUI?
Arrays with files