YouTube Twitter RSS
My IT Learnings
Posts related to computer science, algorithms, software development, databases etc
 
Skip to content
  • Home
  • Posts
Archive by category "java"

Category Archives: java

Java code to run a remote script on remote host using SSH

rajesh • February 17, 2016java java, jsch, remote script, ssh, ssh2
0

SSH SSH (Secure Shell) provides support for secure remote login, secure file transfer, and secure TCP/IP and X11 forwarding. SSH uses a client-server model for - 1. Establishing a secured connection between two parties, 2. Authenticating the two parties, and 3. Encrypting the data transmissions between the two parties. To…

Continue reading

Producer Consumer using Java BlockingQueue

rajesh • January 27, 2016java BlockingQueue, consumer, java, producer
0

BlockingQueue A BlockingQueue supports operations that :- 1. wait for some element to be available in the queue when retrieving an element. 2. wait for space to become available in the queue when storing an element. We will see implementation of a simple Producer-Consumer using BlockingQueue. We will be using…

Continue reading

Adding and Searching in Java ArrayList - Usage and Pitfalls

rajesh • October 23, 2015java ArrayList, java
0

ArrayList ArrayList in Java implements List Interface. It accepts even null elements. ArrayList is not synchronized and therefore external synchronization is required while working with ArrayList in Multi-threaded environments. We will see how to add elements and search elements from an ArrayList. Adding elements to an ArrayList is straightforward. Searching…

Continue reading

From a given graph, delete minimum number of edges such that there is no path from start node to end node.

rajesh • October 2, 2015algorithms, data structures, java bfs, data structures, graph, java
0

Problem Statement :- From a given graph, delete minimum number of edges such that there is no path from start node to end node. Start node : node with minimum value End node : node with maximum value Input format : String array, each element in the array represents an…

Continue reading

  • YouTube Twitter RSS
  • Archives

    • February 2016 (2)
    • January 2016 (5)
    • December 2015 (3)
    • November 2015 (4)
    • October 2015 (6)
  • Categories

    • algorithms (3)
    • bigdata (3)
    • computer science (2)
    • data structures (2)
    • database (5)
    • eclipse (1)
    • hadoop (3)
    • java (4)
    • maven (1)
  • Tags

    algorithms ArrayList base64 bfs bigdata binary search BlockingQueue consumer create table database data structures eclipse encoding graph hadoop hdfs hive IN operator insert java jdbc jsch load data maven mysql oracle orc performance producer remote script select sequencefile sql ssh ssh2 stack unicode update