# Help with porting Java to AS3

**URL:** <https://forum.kirupa.com/t/help-with-porting-java-to-as3/283369>\
**Category:** flash\
**Created:** [March 5, 2009, 11:57am UTC](https://forum.kirupa.com/t/help-with-porting-java-to-as3/283369 "2009-03-05T11:57:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grandpaw\_broon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/grandpaw_broon/32/3985_2.png) [@grandpaw\_broon](https://forum.kirupa.com/u/grandpaw_broon)\
**Post date:** [March 5, 2009, 11:57am UTC](https://forum.kirupa.com/t/help-with-porting-java-to-as3/283369/1 "2009-03-05T11:57:33Z")

</div>

Hi all,

I have decided i need to convert a Java project into AS3.

On first glance, this is pretty easy but there is a couple of things i am stuck on and was wondering if anyone could help?

Well to start it all off.

The only thing i am confused about in this large class is this:

```auto
double[][] oldPositions = new double[2][10];

```

Later this is used like this:

```auto
for (var i:int= 0; i < 4; i++) {
            oldPositions[0]* = oldPositions[0][i+1];
            oldPositions[1]* = oldPositions[1][i+1];
        }
        oldPositions[0][4] = x;
        oldPositions[1][4] = y;

```

I am not really sure what is happening here. Would anyone like to advise?

Thanks :D!
