Continue Statement in Java
Continue Statement in Java:
Continue Statement in Java #DarkHers #darkhers #program #coding #code #java #bhfyp #youtubeshorts - YouTube ________________________________________________
package Test;
public class ContinueStatement
{
public static void main(String[] args)
{
int i = 0;
while(i<10) {
if(i==4) {
i++;
continue;
}
System.out.println(i);
i++;
}
}
}
________________________________________________
Dark Hers
YouTube
https://instagram.com/darkhers
https://www.facebook.com/darkhers
TikTok
https://www.tiktok.com/@darkhers
https://www.pinterest.co.uk/darkhers
Comments
Post a Comment