Hello all-
I'm a student in a java programming class, and being that it's a class in the CS department, the prof and almost all the students use PCs and a certain freeware compiler called JCreator LE (it's a strange little island of PC users in a school full of mac users).
I've used TextEdit to write programs and javac in the Terminal to compile them, but that really sucks. I want to use Project Builder. I've downloaded, installed, and messed around with it quite a bit. I got it to compile a program of mine once but it was unbelievably overcomplicated.
Can anyone help me with compiling and running very simple java applications? Here's one I've pasted from our class website:
public class IntLong
{
public static void main( String args[] )
{
int integer1;
long integer2;
integer1 = 2147483647;
integer2 = 2147483647;
System.out.println ("integer1: " + integer1);
integer1 = integer1 + 1;
System.out.println ("integer1: " + integer1);
System.out.println ("integer2: " + integer2);
integer2 = integer2 + 1;
System.out.println ("integer2: " + integer2);
}
}
It just shows the limits of ints.
I'd be eternally grateful if anyone could help!
Thanks!
-Kevin
I'm a student in a java programming class, and being that it's a class in the CS department, the prof and almost all the students use PCs and a certain freeware compiler called JCreator LE (it's a strange little island of PC users in a school full of mac users).
I've used TextEdit to write programs and javac in the Terminal to compile them, but that really sucks. I want to use Project Builder. I've downloaded, installed, and messed around with it quite a bit. I got it to compile a program of mine once but it was unbelievably overcomplicated.
Can anyone help me with compiling and running very simple java applications? Here's one I've pasted from our class website:
public class IntLong
{
public static void main( String args[] )
{
int integer1;
long integer2;
integer1 = 2147483647;
integer2 = 2147483647;
System.out.println ("integer1: " + integer1);
integer1 = integer1 + 1;
System.out.println ("integer1: " + integer1);
System.out.println ("integer2: " + integer2);
integer2 = integer2 + 1;
System.out.println ("integer2: " + integer2);
}
}
It just shows the limits of ints.
I'd be eternally grateful if anyone could help!
Thanks!
-Kevin