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...

java polymorphism

Java Polymorphism Polymorphism means "many forms", and it occurs when we have many classes...

java methods

A method is a block of code which only runs when it is called. You can pass data, known as parameters...

java methods param

Parameters and Arguments Information can be passed to methods as parameter. Parameters act as variables...

java methods overloading

Method Overloading With method overloading, multiple methods can have the same name with different ...

java math

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

java linkedlist

Java LinkedList In the previous chapter, you learned about the ArrayList class. The LinkedList class...

java lambda

Java Lambda Expressions Lambda Expressions were added in Java 8. A lambda expression is a short block...

java iterator

Java Iterator An Iterator is an object that can be used to loop through collections, like ArrayList...

java interface

Interfaces Another way to achieve abstraction in Java, is with interfaces. An interface is a completel...

java howto add two numbers

Add Two Numbers Learn how to add two numbers in Java: Example int x = 5; int y = 6; int sum = x +...

java hashset

Java HashSet A HashSet is a collection of items where every item is unique, and it is found in the java...

python ml polynomial regression

Polynomial Regression If your data points clearly will not fit a linear regression (a straight line...