java.achchuthan.org
Find the MD5 hash value of a string in java | Java Examples
http://www.java.achchuthan.org/2014/03/find-md5-hash-value-of-string-in-java.html
Find the MD5 hash value of a string in java. Posted By: Achchuthan Yogarajah - 6:59 PM. Here is the example is show quick way to calculate the MD5 hash of a string. I know things with Java have to be well structured and since MD5 is a hashing algorithm it is fairly logical to be in the security package. On the other hand i think a quick md5 method should be in the String class but that’s just my humble oppinion. Anyways here is how it’s done the Java way. Source code of MD5 Generator. Area and the circum...
java.achchuthan.org
06/01/2013 - 07/01/2013 | Java Examples
http://www.java.achchuthan.org/2013_06_01_archive.html
Addition of 2D Array. Subtraction of 2D Array. Sorting of 2D Array. 2D Array to 1D Array. Divide and Conquer Min-Max. Array of link List. Decimal to Binary using Stack. Decimal to Hexadecimal using Stack. Decimal to Octal using Stack. Infix to Postfix using Stack. National Identity Card(NIC) Print Date of Birth. Sort Numbers Using File Reader. Find Day of Date of Birth. Random Numbers and Storing. Surface Area of Tetrahedron. Calculate Yesterday and Tomorrow Date. Data structure and Algorithm.
java.achchuthan.org
02/01/2012 - 03/01/2012 | Java Examples
http://www.java.achchuthan.org/2012_02_01_archive.html
Addition of 2D Array. Subtraction of 2D Array. Sorting of 2D Array. 2D Array to 1D Array. Divide and Conquer Min-Max. Array of link List. Decimal to Binary using Stack. Decimal to Hexadecimal using Stack. Decimal to Octal using Stack. Infix to Postfix using Stack. National Identity Card(NIC) Print Date of Birth. Sort Numbers Using File Reader. Find Day of Date of Birth. Random Numbers and Storing. Surface Area of Tetrahedron. Calculate Yesterday and Tomorrow Date. Data structure and Algorithm. The FileRe...
java.achchuthan.org
Convert Decimal to octal using stack in java | Java Examples
http://www.java.achchuthan.org/2012/03/convert-decimal-to-octal-using-stack-in.html
Convert Decimal to octal using stack in java. Posted By: Java Examples - 1:04 PM. You all are aware of Stacks. It performs two basic operations push and pop. The push operation adds an element to the top of the list, or initializing the stack if it is empty and the pop operation removes an item from the top of the list. Using these operations, we have converted a decimal number into Octal. Divide the decimal number by 8. Treat the division as an integer division. Write down the remainder (in Octal).
java.achchuthan.org
Find all anagrams of a word in Java | Java Examples
http://www.java.achchuthan.org/2013/06/find-all-anagrams-of-word-in-java.html
Find all anagrams of a word in Java. Posted By: Achchuthan Yogarajah - 10:22 PM. Dogs sgod gsod ogsd. Dosg sgdo gsdo ogds. Dsgo sdgo gdso osdg. Dsog sdog gdos osgd. Dgso sodg gods odgs. Dgos sogd gosd odsg. So, when we came up with the permutations of “dogs” above, how did we do it? What were we implicitly thinking? Finding the permutations with recursion. Which letters can we use in a given position? Java version of this program :. Output of this program. BUILD SUCCESSFUL (total time: 1 second). Infix E...
java.achchuthan.org
03/01/2014 - 04/01/2014 | Java Examples
http://www.java.achchuthan.org/2014_03_01_archive.html
Addition of 2D Array. Subtraction of 2D Array. Sorting of 2D Array. 2D Array to 1D Array. Divide and Conquer Min-Max. Array of link List. Decimal to Binary using Stack. Decimal to Hexadecimal using Stack. Decimal to Octal using Stack. Infix to Postfix using Stack. National Identity Card(NIC) Print Date of Birth. Sort Numbers Using File Reader. Find Day of Date of Birth. Random Numbers and Storing. Surface Area of Tetrahedron. Calculate Yesterday and Tomorrow Date. Data structure and Algorithm. Here is th...
java.achchuthan.org
Basic Queue program in java | Java Examples
http://www.java.achchuthan.org/2013/10/queue.html
Basic Queue program in java. Posted By: Achchuthan Yogarajah - 9:56 PM. The Queue.java program features a Queue class with insert(), remove(), peek(), isFull(), isEmpty(), and size() methods. The main() program creates a queue of five cells, inserts four items, removes three items, and inserts four more. The sixth insertion invokes the wraparound feature. All the items are then removed and displayed. Java version of Queue.java. Output of this program:. BUILD SUCCESSFUL (total time: 5 seconds).
java.achchuthan.org
Generic Type in Java | Java Examples
http://www.java.achchuthan.org/2012/03/generic-type-in-java.html
Generic Type in Java. Posted By: Java Examples - 10:16 PM. Types Parameterized types are important because they enable you to create. Classes, interfaces, and methods in which the type of data upon which they operate is specified as a parameter. Generics, it is possible to create a single class, for example, that automatically works with different types of data. A class,. Interface, or method that operates on a parameterized type is called generic. As in generic class or generic method. I’m passion...
java.achchuthan.org
Implement the Dynamic Programming-Rod Cutting in Java | Java Examples
http://www.java.achchuthan.org/2014/08/dynamic-programming-rod-cutting.html
Implement the Dynamic Programming-Rod Cutting in Java. Posted By: Achchuthan Yogarajah - 7:57 PM. Given a rod of length n inches and an array of prices that contains prices of all pieces of size smaller than n. Determine the maximum value obtainable by cutting up the rod and selling the pieces. For example, if length of the rod is 8 and the values of different pieces are given as following, then the maximum obtainable value is 22 (by cutting in two pieces of lengths 2 and 6). Length 1 2 3 4 5 6 7 8.
SOCIAL ENGAGEMENT