Code: 


/**
 * Prints the pattern in the post above.
 * 
 * @author Gaurav
 * @version 1.0
 */
public class pattern
{
    public static void main(String[] args) {
        for(int i = 1; i <= 5; i++){
            for(int j = 1; j <=5; j++){
                if(j < i){
                    System.out.print(i);
                }
                else{
                    System.out.print(j);
                }
            }
            System.out.println();
        }
    }
}
That should do it .

One suggestion. Please do try doing the programs yourself first.. If you're stuck somewhere then only look out for help. Just typing in the pattern and asking for the solution gives the impression that you want us to do your homework (not saying that this might be the case). But I and many others would appreciate if you post your progress as well along with the question.
Gaurav Reviewed by Gaurav on . [JAVA} Need help in a Nested Loop Any1 can help me in java that can will have an output like these please.. 54321 4321 321 21 1 Rating: 5