2021 Code Archive

jswing font manager

Jul 22, 21 0 8 0

In this code example we want to use the available system fonts to change the font family of a JTextArea. we will also change its style and size.Our class extends JPanel to layout its components. By hassan mugabo Intermediate

how to use bigdecimal in java

May 31, 21 0 49 1

This program allows you to enter a light year number into the textbox and converts the number into Kilometers using the BigDecimal class. By hassan mugabo Intermediate

character codes

Feb 20, 21 0 123 0

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 she wants to be printed. By hassan mugabo Simple

bubble sort algorithm

Feb 16, 21 0 149 0

Bubble sort Algorithmis a code example that shows how to write a CSharp program to sort a list of elements using Bubble sort algorithm. By hassan mugabo Simple

Triangular asterisks part 1

Jul 07, 21 0 20 0

This simple program that prints a triangle of asterisks that points up,down, left and right demonstrates how to use the for_loop to control the flow of execution in java. By hassan mugabo Simple

html mobile menu

Jan 27, 21 0 55 0

This simple code example shows you how to make a mobile menu which is initially hidden and visible by clicking the menu icon. By CodeParl Simple

recursive factorial method

Feb 20, 21 0 73 0

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

regular expressions part 1

Jan 29, 21 0 66 0

Regular Expression Demo is a code example that shows how to use regular expressions in java. This code example uses many APIs including Streams, Regular expressions, lambda expressions, Swing Components and many more. By hassan mugabo Advanced

redirect std_io to a file in java

Feb 14, 21 0 56 1

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

javascript set and map collections

Feb 20, 21 0 59 0

This code example shows how to use the Set and Map collections in JavaScript. The code allows the use to observe the behavior by adding,deleting,removing and finding items in the collection. By hassan mugabo Advanced