Tag: java

Learn JAVA #15

Java Classes/Objects Java is an object-oriented programming language. Everything in Java is associated with classes and […]

Learn JAVA #14

Java Methods A method is a block of code which only runs when it is called. You can pass […]

Learn JAVA #13

Java Switch Statements Instead of writing many if..else statements, you can use the switch statement. The switch statement selects one of many code […]

Learn JAVA #12

Java If … Else Java Conditions and If Statements Java supports the usual logical conditions from mathematics: […]

Learn JAVA #11

Java Booleans Very often, in programming, you will need a data type that can only have […]

Learn JAVA #10

Java Math The Java Math class has many methods that allows you to perform mathematical tasks on […]

Learn JAVA #9

Java Strings Strings are used for storing text. A String variable contains a collection of characters surrounded by […]

Learn JAVA #8

Java Type Casting Type casting is when you assign a value of one primitive data type to […]

Learn JAVA #7

Java Data Types As explained in the previous chapter, a variable in Java must be a specified data […]

Learn JAVA #6

Java Variables Variables are containers for storing data values. In Java, there are different types of variables, for […]

Learn JAVA #5

Java Comments Comments can be used to explain Java code, and to make it more readable. […]

Learn JAVA #4

Java Output Numbers Print Numbers You can also use the println() method to print numbers. However, unlike text, we […]

Learn JAVA #3

Java Output / Print Print Text You learned from the previous chapter that you can use the println() method […]

Learn JAVA #2

Java Syntax In the previous chapter, we created a Java file called Main.java, and we used the […]