Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
scharffc authored Oct 14, 2024
1 parent 21e33f5 commit 557d4aa
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion grammars/DanglingElse.java
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@

package circle;

public class DanglingElse {

public static void main(String[] args) {
int x = 0;
if (x == 5)
System.out.println("5");
if (x == 6)
System.out.println("6");
else
System.out.println("else");
}
}

0 comments on commit 557d4aa

Please sign in to comment.