Differences between revisions 22 and 58 (spanning 36 versions)
Revision 22 as of 2009-08-23 18:43:02
Size: 170
Editor: adsl-70-240-203-134
Comment:
Revision 58 as of 2009-08-23 20:00:47
Size: 676
Editor: AlfonsoReyes
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||'''In Java'''||'''In Jython'''||
|| xCoord = Double[25] || xCoord = jarray.zeros(25, "d") ||
||'''Description''' ||'''In Java'''||'''In Jython'''||
||array of doubles || xCoord = Double[25] || xCoord = jarray.zeros(25, "d") ||
||Size of array || mx = data.length; || mx = len(data) ||
||array assignment || double re = reFun.evaluate(new double[] {data[i][j][0], data[i][j][1]}); || re = self.reFun.evaluate([data[i][j][0], data[i][j][1]]) ||
|| Declaring a class type || public class CalcComplexPlotApp implements Calculation { <<BR>> private Control myControl;<<BR>> || class CalcComplexPlotApp(Calculation): <<BR>> def __init__(self): <<BR>> self.myControl = Control <<BR>> ||

Describe ComparisonJavaJython here.

Description

In Java

In Jython

array of doubles

xCoord = Double[25]

xCoord = jarray.zeros(25, "d")

Size of array

mx = data.length;

mx = len(data)

array assignment

double re = reFun.evaluate(new double[] {data[i][j][0], data[i][j][1]});

re = self.reFun.evaluate([data[i][j][0], data[i][j][1]])

Declaring a class type

public class CalcComplexPlotApp implements Calculation {
private Control myControl;

class CalcComplexPlotApp(Calculation):
def init(self):
self.myControl = Control

ComparisonJavaJython (last edited 2009-08-23 20:01:21 by AlfonsoReyes)