# Category: java

## How to Program a Tic Tac Toe Console Game in Java

I have been busy with other things, so it’s been a while since my last post. In this post I will be showing you how to program a simple Tic… Read more »

Share This!

## Algorithm for Reversing an Int in Java

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30… Read more »

Share This!

## Converting Decimal to Hex in Java

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30… Read more »

Share This!

## How to Sort Three Variables in Ascending Order.

Sorting three variables in ascending order. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24… Read more »

Share This!

## Convert from Decimal to Binary in Java.

This code show how to convert from decimal to binary. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 public class Binary284 { public static… Read more »

Share This!

## File Input Validation.

This code performs file input validation by checking whether the file exist and prompting the user for the name of the file two more times, if after 2nd time file… Read more »

Share This!

## Binary Search with Recursion.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30… Read more »

Share This!

## Infix to Postfix Conversion Using Stacks and Generics.

Infix to postfix conversion takes a formula like 2 + 2 – 1, which is infix, and converts it to postfix: 2 2 + 1 -. taking in account the… Read more »

Share This!

## Prime Factorization with Recursion in Java.

Prime factors of a number, are all numbers that are prime and multiplied gives you the original number. Let’s take the number 20 for example, all prime factors of 20… Read more »

Share This!

## Total Sum of All Numbers in Array With Recursion.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 public class Tester {   //sum of all numbers in array with… Read more »

Share This!