Posts

Showing posts from December, 2013

Apprentice

https://www.coursera.org/ https://www.udemy.com/ http://en.wikipedia.org/wiki/Tower_of_Hanoi

Currency

http://www.wikihow.com/Use-Bitcoin http://www.wired.com/wiredenterprise/2013/12/ebay-bitcoin-hack/ http://www.popularmechanics.com/technology/gadgets/tech-news/how-to-spend-a-bitcoin-15397481 http://www.dailydot.com/society/bitcoin-how-to-buy-spend-digital-currency/

swing

http://www.slideshare.net/martyhall/java-7-programming-tutorial-basic-swing-better-gui-controls http://www.apl.jhu.edu/~hall/java/ http://www.apl.jhu.edu/~hall/java/FAQs-and-Tutorials.html http://courses.coreservlets.com/java-training.html http://www.java-programming.info/tutorial/pdf/java/12-Basic-Swing.pdf http://courses.coreservlets.com/Course-Materials/java.html http://courses.coreservlets.com/java-training.html http://www.apl.jhu.edu/~hall/ http://www.apl.jhu.edu/~hall/CWP-Chapter13/index.html#TOC http://www.apl.jhu.edu/~hall/CWP-Chapter13/CWP-Chapter13.7.html http://docs.oracle.com/javase/7/docs/api/javax/swing/JComboBox.html http://docs.oracle.com/javase/tutorial/uiswing/components/combobox.html

Sams teach yourself notes

http://www.informit.com/articles/article.aspx?p=421053&seqNum=4 http://appscout.pcmag.com/free-downloads/274711-jtrack-3d-from-nasa-makes-satellite-tracking-easy

parse

http://www.ehow.com/how_10042839_parse-string-java.html http://stackoverflow.com/questions/787735/what-is-parse-parsing http://willcode4beer.com/parsing.jsp http://www.javapractices.com/topic/TopicAction.do?Id=87

Topical index new international version

http://www.biblegateway.com/passage/?search=Numbers 30:6-16 http://www.biblegateway.com/passage/?search=Esther 1:10-22 http://www.biblegateway.com/passage/?search=Genesis 2:18,23,24;3:16; Esther 1:20-22; Psalms 128:3,4; Proverbs 1 http://www.biblegateway.com/passage/?search=Exodus 21:7-11; Deuteronomy 21:10-14;24:1-4; Ezra 10:1-16; Nehemiah http://www.biblegateway.com/passage/?search=Isaiah 50:1;54:4; Jeremiah 3:8 http://www.biblegateway.com/passage/?search=Genesis 24:53;34:12; Deuteronomy 22:29; 1 Samuel 18:25; Hosea 3:2 http://www.biblegateway.com/passage/?search=Isaiah 54:5;62:4,5; Jeremiah 3:14;31:32; Hosea 1:2;2:19,2 http://www.biblegateway.com/passage/?search=1 Corinthians 7

HeapSort

public class HeapSort    {      private static int heapSize; //this will help us to stop sorting list numbers that are already sorted.      /**      * Sorts the given list in place.      * Worst Case Performance O(nlogn)      * Best Case Performance O(nlogn)      * Average Case Performance O(nlogn)      * @param A - list that needs to be sorted.      */      public void sortNumbers(int[] A)      {        HeapSort(A);      }      /**      * Read sortNumbers method description.      * @param A - list that needs to be sorted.      */    ...

Generate Harmonic Series

    class HarmonicSeries    {      public static void main(String args[])      {        int num = Integer.parseInt(args[0]);        double result = 0.0;        while(num > 0)        {          result = result + (double) 1 / num;          num--;        }        System.out.println("Output of Harmonic Series is "+result);      }    }

Fibonacci

   class Fibonacci    {      public static void main(String args[])      {        int num = Integer.parseInt(args[0]);//taking no. as command line argument.        System.out.println("*****Fibonacci Series*****");        int f1, f2=0, f3=1;        for(int i=1;i<=num;i++)        {          System.out.print(" "+f3+" ");          f1 = f2;          f2 = f3;          f3 = f1 + f2;        }      }    }

Enumerate through a Vector using Java Enumeration Example

   public class EnumerateThroughVectorExample    {      public static void main(String[] args)      {        //create a Vector object        Vector v = new Vector();               //populate the Vector        v.add("One");        v.add("Two");        v.add("Three");        v.add("Four");               //Get Enumeration of Vector's elements using elements() method        Enumeration e = v.elements();        ...

Java Float Compare Example

public class JavaFloatCompareExample    {      public static void main(String[] args)      {        /*        To compare two float primitive values use        compare(float f1, float f2) method of Float class. This is a static method.        It returns 0 if both the values are equal, returns value less than 0 if        f1 is less than f2, and returns value grater than 0 if f2 is grater than f2.        */               float f1 = 5.35f;        float f2 = 5.34f;        int i1 = Float.compare(f1,f2);    ...

Thread Synchronization

      // File Name : Callme.java      // This program uses a synchronized block.      class Callme      {        void call(String msg)        {          System.out.print("[" + msg);          try          {            Thread.sleep(1000);          }          catch (InterruptedException e)          {            System.out.println("Interrupted");          }  ...

Simple Thread Example

   public class SimpleThread extends Thread    {      private int countDown = 5;      private static int threadCount = 0;      public SimpleThread()      {        super("" + ++threadCount); // Store the thread name        start();      }      public String toString()      {        return "#" + getName() + ": " + countDown;      }      public void run()      {        while(true)        {          System.out.println(this);          if(...

ShellSort

  public class ShellSort    {      private long[] data;      private int len;      public ShellSort(int max)      {        data = new long[max];        len = 0;      }      public void insert(long value)      {        data[len] = value;        len++;      }      public void display()      {        System.out.print("Data:");        for (int j = 0; j < len; j++)          ...

MergeSort

   public class MergeSort    {      /**      * Merges two arrays into one.      * @param A array that contains the two arrays.      * @param temp temporary array that we will work with      * @param lo lowest index value in the array      * @param mid middle index value in the array (represents break between low and high values)      * @param hi highest index value in the array      */      private static void Merge(int[] A, int[] temp, int lo, int mid, int hi)      {        int i = lo;        int j = mid;        for (int k = lo; k < hi; k++)        ...

Create a Thread by Extending Thread

 class MyThread extends Thread    {      int count;      MyThread()      {        count = 0;      }      public void run()      {        System.out.println("MyThread starting.");        try        {          do          {            Thread.sleep(500);            System.out.println("In MyThread, count is " + count);            count++;          ...

DataInputStream

   public class Test    {      public static void main(String args[])throws IOException      {        DataInputStream d = new DataInputStream(new FileInputStream("test.txt"));               DataOutputStream out = new DataOutputStream(new FileOutputStream("test1.txt"));               String count;        while((count = d.readLine()) != null)        {          String u = count.toUpperCase();          System.out.println(u);          out.writeBytes(u + " ,");        ...

Recursive Binary Search

   public class BinarySearchRecursive    {      public static final int NOT_FOUND = -1;      /**      * Performs the standard binary search      * using two comparisons per level.      * This is a driver that calls the recursive method.      * @return index where item is found or NOT_FOUND if not found.      */      public static int binarySearch( Comparable [ ] a, Comparable x )      {        return binarySearch( a, x, 0, a.length -1 );      }      /**      * Hidden recursive routine.      */      ...

indices

http://www.oracle.com/technetwork/java/compile-136656.html http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javac.html http://docs.oracle.com/javase/6/docs/technotes/tools/windows/javac.html http://introcs.cs.princeton.edu/java/15inout/windows-cmd.html http://stackoverflow.com/questions/17952801/compiling-from-the-command-line http://www.sergiy.ca/how-to-compile-and-launch-java-code-from-command-line/ http://www.cs.swarthmore.edu/~newhall/unixhelp/debuggingtips_Java.html https://www.mtholyoke.edu/courses/srollins/cs325-f03/web/command.html

javase/uiswing/components

http://docs.oracle.com/javase/tutorial/index.html http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/ http://www.javatutorialhub.com/java-swing-gui.html http://www.zetcode.com/tutorials/javaswingtutorial/ http://www.javabeginner.com/java-swing/java-swing-tutorial http://docs.oracle.com/javase/tutorial/uiswing/components/index.html

merge sort

http://docs.oracle.com/javase/6/docs/api/java/util/Arrays.html http://www.tutorialspoint.com/javaexamples/array_merge.htm http://java-tips.org/java-se-tips/java.lang/merge-sort-implementation-in-java.html http://www.roseindia.net/java/beginners/arrayexamples/mergeSort.shtml http://en.literateprograms.org/Merge_sort_%28Java%29 http://javarevisited.blogspot.com/2013/02/combine-integer-and-string-array-java-example-tutorial.html http://www.ehow.com/info_12195065_merge-sort-java-code.html http://roseindia.net/answers/viewqa/Java-Beginners/25294-Merge-Sort-String-Array-in-Java.html

oracle java api examples

http://docs.oracle.com/javase/7/docs/api/java/lang/Void.html http://docs.oracle.com/javase/7/docs/api/java/nio/file/Watchable.html http://docs.oracle.com/javase/7/docs/api/java/awt/Window.html http://docs.oracle.com/javase/7/docs/api/java/awt/event/WindowEvent.html http://docs.oracle.com/javase/7/docs/api/java/sql/Wrapper.html http://docs.oracle.com/javase/7/docs/api/org/omg/DynamicAny/_DynEnumStub.html http://docs.oracle.com/javase/7/docs/api/org/omg/PortableServer/_ServantActivatorStub.html http://docs.oracle.com/javase/7/docs/api/org/omg/CosNaming/_BindingIteratorImplBase.html http://docs.oracle.com/javase/7/docs/api/javax/swing/text/ZoneView.html http://docs.oracle.com/javase/7/docs/api/org/omg/DynamicAny/_DynAnyFactoryStub.html http://docs.oracle.com/javase/7/docs/api/java/lang/Override.html http://docs.oracle.com/javase/7/docs/api/java/awt/print/PageFormat.html http://docs.oracle.com/javase/7/docs/api/allclasses-noframe.html http://docs.oracle.com/javas...

incomplete

http://docs.oracle.com/javase/7/docs/api/ http://docs.oracle.com/javase/7/docs/api/java/text/StringCharacterIterator.html http://docs.oracle.com/javase/7/docs/api/java/text/ParsePosition.html http://docs.oracle.com/javase/7/docs/api/java/text/Collator.html http://docs.oracle.com/javase/7/docs/api/org/omg/Dynamic/Parameter.html http://docs.oracle.com/javase/7/docs/api/java/net/Authenticator.html http://docs.oracle.com/javase/7/docs/api/java/util/Observable.html http://docs.oracle.com/javase/7/docs/api/javax/swing/OverlayLayout.html http://docs.oracle.com/javase/7/docs/api/java/awt/LayoutManager.html http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html http://docs.oracle.com/javase/7/docs/api/org/omg/DynamicAny/_DynStructStub.html http://docs.oracle.com/javase/7/docs/api/org/omg/DynamicAny/_DynAnyStub.html http://docs.oracle.com/javase/7/docs/api/org/omg/DynamicAny/_DynAnyFactoryStub.html

recursive lexicographic

http://www.dreamincode.net/forums/topic/128621-sorting-a-string-array-lexicographically/ http://answers.yahoo.com/question/index?qid=20090113231210AAHeZ5Q http://www.java-tips.org/java-se-tips/java.io/how-to-read-file-in-java.html http://javamex.com/tutorials/collections/sorting_simple_cases.shtml http://stackoverflow.com/questions/2999129/how-do-i-sort-an-arraylist-lexicographically http://docs.oracle.com/javase/tutorial/collections/interfaces/order.html http://docs.oracle.com/javase/tutorial/collections/algorithms/index.html http://www.cs.brandeis.edu/~storer/cs180/Slides/11-Strings/11-02-LexSort.pdf http://www.dreamincode.net/forums/topic/182719-sorting-array-of-strings-in-lexicographic-order/page__st__15 http://www.cjavaphp.com/q/answers-merge-sort-worst-case-running-time-for-lexicographic-sorting-9276163.html http://en.wikipedia.org/wiki/Talk%3ALexicographical_order http://docs.oracle.com/javase/tutorial/collections/interfaces/order.html http://docs.o...