GNU Compiler for Java: Difference between revisions

Content deleted Content added
History: rm 'the'
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags
Line 46:
given a Java class,
 
<sourcesyntaxhighlight lang="java">
public class Int
{
Line 53:
public static Int zero = new Int(0);
}
</syntaxhighlight>
</source>
 
one can use the class thus:
 
<sourcesyntaxhighlight lang="cpp">
#include <gcj/cni.h>
#include <Int>
Line 67:
return new Int(p->i * k);
}
</syntaxhighlight>
</source>
 
==See also==