php echo print

With PHP, there are two basic ways to get output: echo and print. In this tutorial we use echo or...

php datatypes

PHP Data Types Variables can store data of different types, and different data types can do different...

php cookies

What is a Cookie? A cookie is often used to identify a user. A cookie is a small file that the server...

php compiler

PHP Compiler (Editor) With our online PHP compiler, you can edit PHP code, and view the result in your...

ref keyword continue

❮ Java Keywords Example Skip the iteration if the variable i is 4, but continue with the next i...

ref keyword catch

❮ Java Keywords Example If an error occur, use try...catch to catch the error and execute some...

ref keyword case

❮ Java Keywords Example Calculate the weekday name: int day = 4; switch (day) {   case 1:   ...

ref keyword byte

❮ Java Keywords Example byte myNum = 100; System.out.println(myNum); Try it Yourself » D...

ref keyword boolean

❮ Java Keywords Example A boolean data type with true or false values: boolean isJavaFun = true...

java wrapper classes

Java Wrapper Classes Wrapper classes provide a way to use primitive data types (int, boolean, etc...

java variables

Java Variables Variables are containers for storing data values. In Java, there are different types...

java type casting

Java Type Casting Type casting is when you assign a value of one primitive data type to another type...

java try catch

Java Exceptions When executing Java code, different errors can occur: coding errors made by the programm...

java threads

Java Threads Threads allows a program to operate more efficiently by doing multiple things at the same...

java syntax

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

java switch

Java Switch Statements Use the switch statement to select one of many code blocks to be executed. S...

java regex

What is a Regular Expression? A regular expression is a sequence of characters that forms a search patte...

java ref string

All String Methods The String class has a set of built-in methods that you can use on strings. Method...

java ref math

The Java Math class has many methods that allows you to perform mathematical tasks on numbers. All Math...

java quiz

You can test your Java skills with W3Schools' Quiz. The Test The test contains 25 questions and there...