-
Recent Posts
- Episode 84: Kubernetes POD Configurations and Settings
- Episode 83 : Kubernetes Installations and Configurations
- Episode 82 : Airline Problem Solution – Java Utility Function
- Episode 81: Java Utility Functions – Histogram Display in Java Applications
- Episode 80: Java Utility functions – Help Display in the java Applications using the Resources
Archives
- January 2024
- December 2023
- October 2023
- December 2022
- August 2022
- June 2022
- May 2022
- April 2022
- January 2022
- July 2021
- June 2021
- May 2021
- February 2021
- January 2021
- May 2020
- April 2020
- November 2019
- August 2019
- April 2018
- March 2018
- February 2018
- January 2018
- December 2017
- September 2017
- December 2016
- October 2016
- April 2015
- March 2015
- January 2015
- September 2014
- August 2012
- February 2012
- January 2012
- December 2011
- November 2011
- June 2011
- April 2011
- March 2011
- November 2010
- October 2010
- September 2010
- August 2010
Categories
Meta
Monthly Archives: January 2018
Lift Operation – Program Development in Java Interesting !!!
import java.awt.geom.*; public class elevator { static int floor; public static void main(String args[]) { floor = (int) (Math.random() * 10 + 1); System.out.println(“The elevator is now on floor ” +floor); System.out.print(“Which floor are you at now (0-10) where 0 … Continue reading
Matrix Graph Implementation in Java
public class MatrixGraphs { public static void main(String args[]) { AdjacencyMatrixGraph graph = new AdjacencyMatrixGraph(10); graph.addEdge(1, 2); graph.addEdge(1, 5); graph.addEdge(2, 5); graph.addEdge(1, 2); graph.addEdge(2, 3); graph.addEdge(3, 4); graph.addEdge(4, 1); graph.addEdge(2, 3); System.out.println(graph); } } class AdjacencyMatrixGraph { private int _numberOfVertices; … Continue reading
HashMap Implementation in Java Easy…
import java.util.ArrayList; import java.util.LinkedList; public class HashMap<K,V> { public class hmnodes{ //HashMap nodes K key; V value; } private int size=0; //size of hashmap private LinkedList<hmnodes> buckets[]; //array of addresses of list public HashMap(){ buckets=new LinkedList[4]; //initially create bucket of … Continue reading
Unzip Utility in Java
public class UnzipUtility { /* Automaticaly UnCompress Tar files * @author Ashoka BM * */ public static List unTar(File tarFile, File directory) throws IOException { List<String> result = new ArrayList<String>(); InputStream inputStream = new FileInputStream(tarFile); TarArchiveInputStream in = new TarArchiveInputStream(inputStream); … Continue reading