Friday 9 September 2011

Java: Comment Answers

   Just to address the question I got in the comments yesterday (will post more on arrays later):

int is a data type, its not for initializing or anything like that. It stands for integer, and can only hold that kind of value. Other commonly used data types include:
float   This is for numbers with a decimal value.  '1.1'
char   A single character. 'c' , '-'
String This is an array of characters, "The quick brown fox etc etc 123123..-=/"


   As for running Java on a Linux machine, (keeping in mind my expertise is nonexistent), you should only need to get the JDK (Java Development Kit) and Netbeans bundle from the oracle website, found here.

That should be good. More on arrays after I've got me some sleep.


No comments:

Post a Comment