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 { |
class CalcComplexPlotApp(Calculation): |
NEW STYLE: General table layout and HTML like options::
Heading
cell 1
cell2
cell 3
spanning rows
spanning 2 columns
cell2
cell 3
- Cell width
narrow
wide
- Spanning rows and columns
2 rows
row 1
row 2
row 3 over 2 columns
- Alignment
left
top
bottom
centered
right
- Fonts
normal
bold
red
boldred
- Colors
red
green
blue
- OLD STYLE: General table layout and HTML like options
Heading
cell 1
cell2
cell 3
spanning rows
spanning 2 columns
cell2
cell 3
- Cell width
narrow
wide
- Spanning rows and columns
2 rows
row 1
row 2
row 3 over 2 columns
- Alignment
left
top
bottom
centered
right
- Colors
red
green
blue
- Line breaks within cells
line 1BRline 2