Breaking News
Home / Java / Java Tutorials (page 2)

Java Tutorials

Write a program to generate Prime Numbers

In mathematics, a prime number (or a prime) is a natural number that has exactly two distinct natural number divisors: 1 and itself. The first twenty-five prime numbers are: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, …

Read More »

How to encode URL?

URLEncoder is the utility class for HTML form encoding is part of JDK API. This class contains static methods for converting a String to the application/x-www-form-urlencoded MIME format. Custom encoders can also be built using simple String replacement techniques, however we used use this when the built-in encode does not …

Read More »

Programmatically Toggle Function Keys

The function keys of the keyboard  Caps Lock, Num Lock and Scroll Locks keys can be turned on or off programmatically via the simple API available in the Toolkit class. This feature is very helpful in AWT/Swing based applications where we want data in certain format ex. all input must …

Read More »