एक विकल्प के लिए कुछ करने के लिए नेस्टेड यदि बयान, आप का उपयोग कर सकते हैं
कोड उदाहरण
1
0
उदाहरण के नेस्टेड यदि बयान
public class Test {
public static void main(String args[]) {
int x = 30;
int y = 10;
if( x == 30 ) {
if( y == 10 ) {
System.out.print("X = 30 and Y = 10");
}
}
}
}