Hai friend
I am very happy to Discuss with you
This is Forward loop
Code:
public class NewClass2 {
public static void main(String args[])
{
int lines, stars;
for (lines = 0; lines < 6; lines++)
{
for(stars = 0; stars<=lines; stars++)
{
System.out.print('*');
}
System.out.println();
}
}
}
This is Reverse Loop
Code:
public class NewClass2 {
public static void main(String args[])
{
int lines, stars;
for (lines =6; lines>0; lines--)
{
for(stars = 0; stars<lines; stars++)
{
System.out.print('*');
}
System.out.println();
}
}
}
Do you want more Examples - please click here
http://javasefx.blogspot.com/
Web Design in India