Tuesday, November 25, 2014

Breaking loop in java

In example, Test class has a main method and a for loop inside it and printing the looped value on console and break syntax will hault the execution of loop.
 public class test2  
 {  
      public static void main(String args[])  
      {  
           for(int x=5;x<=10;x++)  
           {  
                if(x%10==0)  
                {  
                     System.out.println(x);  
                     break;  
                     System.out.println(x);  
                }  
           }  
      }  
 }  

String Manipulation in java

In example, Test class has a main method and local string variable with few string manipulation i.e length of string, character at given position and string comparison.
 public class Test1  
 {  
      public static void main(String args[])  
      {  
           String result1="hello java";  
           int result2=result1.length()%3;  
           char result3=result1.charAt(3);  
           String result4="result1"+"result1";  
           System.out.println(result1.equals("hello java"));  
           System.out.println(result2);  
           System.out.println(result3);  
           System.out.println(result4);  
           System.out.println(result1.lastIndexOf('w'));  
      }  
 }  

For loop example in java

In example, Test class has a main method and local variable with a for loop inside it and printing the looped value on console.
 public class Test   
 {  
      public static void main(String args [])  
      {  
           int total=0;  
           int a=0;  
           int num=4321;  
           for(int x=0;x<4;x++)  
           {  
                a=num/10;  
                num=num/10;  
                System.out.println(a);  
                total +=a;  
           }  
                System.out.println(total);  
      }  
 }  

Thursday, March 13, 2014

Hibernate Tutorial


Video Tutorial from Java Brains

Maximize the efficiency of your Scrum process with OnTime

Kanban

)

Easily manage product backlogs


Add new user stories, defects and incidents. Organize items into projects, releases and sprints, then assign them to team members.

Effectively plan releases and sprints


Easily plan new sprints and releases by dragging in user stories until your release capacity meter is filled.

Quickly analyze burndown velocity


Gather work data from your team, and use it to evaluate your releases and monitor progress with Scrum burndown charts.

Wednesday, March 12, 2014

Proxy Objects

A proxy object acts as an intermediary between the client and an accessible object. The purpose of the proxy object is to monitor the life span of the accessible object and to forward calls to the accessible object only if it is not destroyed.
Proxy Design Pattern Example
Fig - Proxy Design Pattern Example
Follow the links below for Java Reflection - Dynamic Proxies tutorials