This file contains 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
public class LinkedList{ | |
Node head; | |
Node current; | |
public static class Node{ | |
int data; | |
Node next; |
This file contains 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
class LinkedListOperations { | |
public static void main(String[] args) { | |
LinkedList list = new LinkedList(); | |
list.insert(1); | |
list.insert(2); | |
list.insert(4); | |
list.insert(3); | |
list.insert(5); | |
list.show(); |
This file contains 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
package com.vp.activemq.consumer; | |
import javax.jms.Connection; | |
import javax.jms.Destination; | |
import javax.jms.JMSException; | |
import javax.jms.Message; | |
import javax.jms.MessageConsumer; | |
import javax.jms.Session; | |
import javax.jms.TextMessage; |
This file contains 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
package com.vp.activemq.producer; | |
import javax.jms.Connection; | |
import javax.jms.DeliveryMode; | |
import javax.jms.Destination; | |
import javax.jms.MessageProducer; | |
import javax.jms.Session; | |
import javax.jms.TextMessage; | |
import org.apache.activemq.ActiveMQConnectionFactory; |
This file contains 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
package com.vp.activemq; | |
import com.vp.activemq.consumer.HelloWorldConsumer; | |
import com.vp.activemq.producer.HelloWorldProducer; | |
/** | |
* Hello world! | |
* | |
*/ | |
public class App |
This file contains 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
/* | |
* | |
@author noeik | |
* | |
*/ | |
public class BubbleSort { | |
static int[] data = {10,23,45,5,3,2};// global data integer array | |
public static void main(String[] args) { |
This file contains 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
package com.vp.spring; | |
import org.springframework.context.ApplicationContext; | |
import org.springframework.context.support.ClassPathXmlApplicationContext; | |
import org.springframework.context.support.FileSystemXmlApplicationContext; | |
public class IOCApp1 { | |
public static void main(String[] args) { | |
// load the application context |
This file contains 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
public class RandomGenerator { | |
public static void main(String[] args) { | |
// for getting 50% probability of 0 and 1 | |
System.out.println("For 50% of 0 and 1 probability "+random50()); | |
// for getting 75% probability of 1 | |
System.out.println("For getting 75% probability of 1 as output :"+random75()); |
This file contains 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.util.ArrayList; | |
import java.util.List; | |
public class AllSubString { | |
public static void main(String[] args) { | |
String str ="noeik"; | |
This file contains 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
package com.vp.springdemo; | |
import java.util.List; | |
import org.springframework.context.ApplicationContext; | |
import org.springframework.context.support.ClassPathXmlApplicationContext; | |
import org.springframework.dao.DataAccessException; | |
import org.springframework.jdbc.BadSqlGrammarException; | |
import com.vp.springdemo.dao.OrganizationDao; |
OlderNewer