This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Initialized bit = 10 | |
encrypt: subtraction | |
encrypt: multiplication | |
Encrypted bit = 16 | |
decrypt: divide | |
decrypt: addition | |
Decrypted bit = 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by dinsaw on 1/4/2015. Part of javacodebit | |
*/ | |
public class SuperDemo { | |
static final int KEY = 8; | |
public static void main(String[] args) { | |
ExtendedSuperBit bit = new ExtendedSuperBit(10, "Bitman"); | |
System.out.println("Initialized bit = " + bit.getCode()); | |
bit.encrypt(KEY); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In main before change x = 10 | |
In change x = 5 | |
In main after change x = 10 | |
In main before change point = java.awt.Point[x=10,y=10] | |
In change point = java.awt.Point[x=5,y=5] | |
In main after change point = java.awt.Point[x=5,y=5] | |
In main before change arrayOfInt[0] = 1 | |
In change arrayOfInt[0] = 5 | |
In main after change arrayOfInt[0] = 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
�� sr "in.blogspot.abjava.concept.Student5@چg� I rollNumL namet Ljava/lang/String;xp t Din |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
student = Student{name='Din', rollNum=1, course='CS'} | |
Object saved. | |
Object read completed. | |
student1 = Student{name='Din', rollNum=1, course='null'} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.ObjectInputStream; | |
import java.io.ObjectOutputStream; | |
import java.io.Serializable; | |
/** | |
* Created by dsawant on 12/13/2014. | |
* for all example source code visit : https://github.com/dinsaw/abjava |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Following program demonstrates use of Comparable and Comparator in java | |
*/ | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.Comparator; | |
import java.util.List; | |
/** |