|
Hi,I am new to this site. Actually,I want to try something like this:
if( )
{
}
for( )
{
}
As soon as I end for loop,I want to check for a condition...
if( true)
{
repeat if( ) or
goto if()
}
Can I use labels???How can I do this??? Is there any substitute for this???Plz help.Let me know.
|
|
|
In java we use loops, methods and OOP (Object-Oriented Programming) in place of GOTO.
See GOTO Statements and Java Programming.
public class LoopControl {
public static void main(String[] args) {
int count = 0;
do {
if(count % 2 == 0) {
for(int j = 0; j < count; j++) {
System.out.print(j+1);
if(j < count-1)
System.out.print(", ");
}
System.out.println();
}
count++;
} while(count <= 5);
}
}
|
|
|
|
|
Ground shaking content i get form your blog. Very nice post about goto in java. Thanks for your beneficial information about 646-976 dumps, 646-985 dumps and 646-985 dumps certifications. These are the best certifications in the world.
|
|
|
Physical exercise is considered important for maintaining physical fitness and overall health (including healthy weight), building and maintaining healthy bones, muscles and joints, promoting physiological well-being, reducing surgical risks, and strengthening the immune system. Aerobic exercises, such as walking, running and swimming, focus on increasing cardiovascular endurance and muscle density. Anaerobic exercises, such as weight training or sprinting, increase muscle mass and strength. Proper rest and recovery are also as important to health as exercise, otherwise the body exists in a permanently injured state and will not improve or adapt adequately to the exercise. The above two factors can be compromised by psychological compulsions (eating disorders, such as exercise bulimia, anorexia, and other bulimias), misinformation, a lack of organisation, or a lack of motivation.
_____________________________________________________
Pass4sure 000-607| Pass4sure 000-087| Pass4sure 000-037| Pass4sure 000-025| Pass4sure 000-004| Pass4sure HP2-H08| Pass4sure HP0-Y31| Pass4sure HP0-S30| Pass4sure HP0-S29| Pass4sure HP0-P15
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|