Tuesday, November 25, 2014

StringBuffer example


 public class BufferDemo  
 {  
      public static void main(String args[])  
      {  
           String foo="foo";  
           String a="abc"+foo+"def"+Integer.toString(47);  
           System.out.println(a);  
           StringBuffer ab= new StringBuffer("abc");  
           ab.append(foo);  
           ab.append("def");   
           ab.append(Integer.toString(47));  
           System.out.println(ab);  
      }  
 }  

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.