Author Archives: ashokabhat

About ashokabhat

I am a C,C ,JAVA,Adobe Flex,.NET Programmer Currently working as a Software Developer

Fast and Flexible DB Retrieval API from Apache DB Util

Sample Program :  Dependency Jar Library Files : 1] commons-dbcp-1.4.jar 2] commons-dbutils-1.7.jar 3] commons-lang3-3.7.jar 4] commons-pool2-2.4.3.jar 5] mysql-connector-java-6.0.6.jar ============================================= public class ErrorBean { private int id; private String severity; private String errorcode; public int getId() { return id; } public … Continue reading

Rate this:

Posted in Core Java | Leave a comment

Software Quality is one of the major factor for Software Delivery

Delivering great software depends on many factors, quality surely being one of the most important ones. Software quality management is key in making sure that the final product meets all requirements and works as expected. Therefore quality management should start … Continue reading

Rate this:

| Leave a comment

Database Partition Systems – Cluster Architecture

CREATE PARTITION AND TABLE SPACES: CREATE BIGFILE TABLESPACE bigtbs_00 DATAFILE ‘/u01/imig/clusterdb/PARTITION_0.dat’ SIZE 250M AUTOEXTEND ON; CREATE BIGFILE TABLESPACE bigtbs_01 DATAFILE ‘/u01/imig/clusterdb/PARTITION_1.dat’ SIZE 250M AUTOEXTEND ON; CREATE BIGFILE TABLESPACE bigtbs_02 DATAFILE ‘/u01/imig/clusterdb/PARTITION_2.dat’ SIZE 250M AUTOEXTEND ON; CREATE SAMPLE TABLE FOR DEMO … Continue reading

Rate this:

| Leave a comment

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

Rate this:

| Leave a comment

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

Rate this:

| Leave a comment

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

Rate this:

| Leave a comment

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

Rate this:

| Leave a comment