Are You Feeling any difficulity while writing Core-Java Programs. Send those to me Here.

Sunday 3 August 2014

Example Program to read the JSON data from HTTP request

Read some data present in JSON object by making a HTTP request.


Program:

Wednesday 30 April 2014

Museum Problem ::

Problem:

You have a museum with a grid layout for its rooms. Each room is of the same size and uniquely numbered. The museum has two gates G1 and G2 – each gate works as an entry and exit point. A person enters through gate G1, walks through each room and then leave through G2. Similarly, a person may enter through gate G2, walk through each room and then leave through G1. To illustrate this with an example, below is a museum with 25 rooms.

Monday 2 December 2013

Get the sequence chars from given text

Program:
public class Series {
    public static void main(String arg[]){
        String str = "yuwetabcdefgrqwyu";
        System.out.println(str);

Get the data for given IP address from log file

Program:
public class Log {
    public static void main(String[] args) {
        BufferedReader br = null;
        String ip = "10.4.23.21";

Friday 29 November 2013

Find strings which are having duplicate chars in given string array

Program:
public class Duplicate {
    public static void main(String[] args) {
        String[] str = {"dussera", "slap", "fool","boolean","clap"};
        String[] str1 = new String[str.length];