{{ searchForm . total }} results found
Page {{ searchForm . pagination . currentPage }}/{{ searchForm . pagination . lastPage }}

{{ searchForm . message }}

java code examples

Body mass index calculator

Body Mass Index Calculator code example shows how to design a GUI for calculating body mass index. Just enter your height and weight and click Calculate BMI to get your BMI.

Redirect std_io to a file in java

THIS PROGRAM DEMONSTRATES HOW TO REDIRECT THE STANDARD INPUT AND OUT STREAM TO A FILE WITHIN THE PROJECT DIRECTORY.

Swapping algorithm

This code example shows how to write an algorithm for wrapping strings by displaying some country names and swapping them.

Image slider

This code examples uses multi-threading concepts to load some images randomly at a given time interval

Character codes

Character Code is a simple code example that shows how to print system characters by using a while loop. The program asks the user to enter offset and range (separated by space) of the characters sh...

Message encrypter

This is not a complete program that you can use, it is just a code example to illustrate the use of cryptography API in java.

Draft board panel in java

This code example shows how to write a code that draws a draft looking panel that can be resized and changed its colors by using a slider.

Recursive factorial method

This code example shows how to calculate a factorial of numbers 0 through 15 by using a recursive method.

Recursive fibonacci method

This code example shows how to print Fibonacci numbers 0 through 20 by using a recursive method. Download the code and run it with your Netbeans.

How to filter numbers recursively

This code example shows how to use recursion to filter an arbitrary set of numbers and returns even, odd, squares, cubic, and prime numbers