2 Websites & 2 Apps That Can Help When Learning Java Programming

Variables

More than likely you’ll also need to store information at certain points. These are variables, or sometimes called fields, that hold the information. You have to specify the type of variable so that Java knows what you’re trying to hold. This includes things like true/false (boolean), numbers (int, long, double, etc.), and much more. As Java can support object-oriented programming, you can even hold instances of a class in a variable.computer science computer science computer science computer science computer science

Example

As an example, here is a class that would simply print out the number 6 onto the screen:

public class makeuseof
{
public static void main (String args[])
{
int myNum = 6;
System.out.println(myNum);
}
}

2 Recommended Applications

There are two applications I would recommend that will help you during your programming adventures.

Prev2 of 4Next

Leave a Reply

Your email address will not be published. Required fields are marked *