Blog Archives

Merge Sort Example in Java


package in.malliktalksjava; /** * @author malliktalksjava * * Sorts the given array using merge sort algorithm */ public class MergeSortExample { private int[] array; private int[] tempMergArr; private int length; /** * @param args * * main method. * Pass

Tagged with: , , , , , , , ,
Posted in JAVA

Quick Sort Example Program in Java


package in.malliktalksjava; /** * @author malliktalksjava * * Sort the given array using QuickSort Algorithm */ public class QuickSortExample { private int array[]; private int length; /** * @param args * * Main Method. Calls the sort method and print

Tagged with: , , , , , , , , ,
Posted in JAVA

Insertion Sort Example program in JAVA


package in.malliktalksjava; /** * @author malliktalksjava * This class sort an array using Insertion sort algorithm. * */ public class InsertionSortExample { /** * @param args */ public static void main(String args[]){ int[] arr1 = {10,34,2,56,7,67,88,42}; int[] arr2 = doInsertionSort(arr1);

Tagged with: , ,
Posted in JAVA

Selection Sort Example Program in Java


package in.malliktalksjava; /** * @author malliktalksjava * @version 1.0 * * Below class sorts the given array using SelectionSort * mechanism and prints the output into console. */ public class SelectionSortExample { /** * @param args */ public static void

Tagged with: , , , , , , ,
Posted in JAVA

Bubble Sort Example in JAVA


package in.malliktalksjava; /** * @author malliktalksjava * */ public class BubbleSortExample { private static int[] input = { 4, 2, 9, 6, 23, 11, 44, 0 }; /** * @param args * main method to run the logic. */ public

Tagged with: , , , , , , , , ,
Posted in JAVA

Number series example program using JAVA


package in.malliktalksjava; /** * @author malliktalksjava.in * * This program prints the numbers in below pattern * 1 * 123 * 12345 * 1234567 * 12345 * 123 * 1 */ class PrintingNumberPatterns{ public static void main(String[] args){ printNumberSeries(); }

Tagged with: , , , , , , , , , ,
Posted in JAVA

Install SSL Certificates into Java JRE


Some times it would require to install the SSL certificates into our JRE. Below are the steps that need to perform to get the certificates added into the JRE security folder. 1. Navigate to JDK\jre\bin and copy the “keytool.exe” and

Tagged with: , , , , , ,
Posted in JAVA

Javac/Java searching algorithm for other classes


With this post, I would like to explain how exactly the Java/Java will search for its dependencies in the project or application level. Java Applications can be run using the command line or in the Web/Application servers. For both the

Tagged with: , , , , , ,
Posted in JAVA

Example Program – Armstrong Number


Below sample programs finds whether the given number is an Armstrong Number or not. An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. For example,

Tagged with: , , ,
Posted in JAVA

Example program to reverse a Number in Java


  package in.javatutorials; public class ReverseNumber { public static void main(String[] args) { System.out.println(“The reversed number is ” + reverse(1234)); } public static int reverse(int input) { int result = 0; int rem; while (input > 0) { rem =

Tagged with: , , , , , , ,
Posted in JAVA

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 679 other followers

Calendar
September 2019
M T W T F S S
« Jan    
 1
2345678
9101112131415
16171819202122
23242526272829
30  
Mallikarjun Gunda

This is Mallikarjun Gunda, I am working as a software professional. Blogging is my Passion. This blog contains the posts on Java related technologies and programming languages. I am happy to share my knowledge through the blogs.

Blog Stats
  • 316,705 hits
IndiBlogger
malliktalksjava.wordpress.c...
70/100