Error: "CPU" is either a misplaced package name or a non-existent entity.
cassie
Posts: 7
I am trying to do a very simple tutorial from the starter book, the one called "Display Primitive Types".
Here is my complete code:
public class DataTypes
{
static boolean logicVal = true;
static char charact = 'a';
static short number = 000;
static int numbah = -2000;
··· public static void main()
··· {
··· System.out.println(logicVal);
··· CPU.delay(20000);
··· System.out.println(charact);
··· System.out.println(number);
··· System.out.println(numbah);
··· }
}
I can get the data types to display through debug, but the "CPU.delay(20000);" line of code seems to be causing trouble. I don't know why- i have previously written similiar code and the delay worked.
Here is my complete code:
public class DataTypes
{
static boolean logicVal = true;
static char charact = 'a';
static short number = 000;
static int numbah = -2000;
··· public static void main()
··· {
··· System.out.println(logicVal);
··· CPU.delay(20000);
··· System.out.println(charact);
··· System.out.println(number);
··· System.out.println(numbah);
··· }
}
I can get the data types to display through debug, but the "CPU.delay(20000);" line of code seems to be causing trouble. I don't know why- i have previously written similiar code and the delay worked.
Comments
by chapter 3-4 you should have a good foundation to really get into working with the javalin proc....going through the manual will be a lot easier as well.
http://www.mindview.net/Books/TIJ/
It's helped me immensly in understanding all of the terminology as well as a better understanding of writing classes.
Everything you would need to learn can be downloaded for free when it comes to java. [noparse]:)[/noparse]
just my 2 cents...
-Mark