Java Training in Coimbatore | Java Jobs in Coimbatore | Java IEEE Projects in Coimbatore and Java Final Projects in Coimbatore
- Android Bootcamp Training
- Fundamentals of Java Training
- Java Web Development with Spring and Hibernate Training
- Advanced Spring Training
- Java Programming for Android Development Training
- Java Web services Training
Code Blocks
syntax
if(m<n) // Beginning of code
{
m=n;
n=0;
} // End of code
For example
class murugan
{
public static void main(String args[])
{
int a,b;
a=20;
for(b=0;b<10;b++)
{
System.out.println("b value is=" +b);
System.out.println("a value is="+a);
a=a-1;
}
}
}
Their Result will be like following one
b value is=0
a value is=20
b value is=1
a value is=18
b value is=2
a value is=16
b value is=3
a value is=14
a value is=14
b value is=4
a value is=12
b value is=5
a value is=10
b value is=6
a value is=8
b value is=7
a value is=6
b value is=8
a value is=4
b value is=9
a value is=2
No comments:
Post a Comment