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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
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: 3169
    
  10
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: 36579
    
  16
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://aspose.com/file-tools
 
subject: Problem in filling an two dimensional array please help
 
Similar Threads
Image transformations
copying arrarys into a different class with methods
Bidimensional array to GUI?
Maximum Sum Project!!
Arrays with files