update Main with example for difference & and &&
This commit is contained in:
		
							parent
							
								
									f692ae7588
								
							
						
					
					
						commit
						13e1a61ad9
					
				@ -3,6 +3,33 @@ public class Main {
 | 
				
			|||||||
        System.out.println(args[2]);
 | 
					        System.out.println(args[2]);
 | 
				
			||||||
        System.out.println("Hello world!");
 | 
					        System.out.println("Hello world!");
 | 
				
			||||||
//        System.out.println(1);
 | 
					//        System.out.println(1);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        int a = 1;
 | 
				
			||||||
 | 
					        int b = 2;
 | 
				
			||||||
 | 
					        int c = 1;
 | 
				
			||||||
 | 
					        int d = 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        System.out.println(2&1);
 | 
				
			||||||
 | 
					        System.out.println(2|1);
 | 
				
			||||||
 | 
					        int aa = 2;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        /*if (aa) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        }*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					//        System.out.println("a"&"b");
 | 
				
			||||||
 | 
					        System.out.println('a'&'b');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if ((a > b) & MyBooleanMethod()) {
 | 
				
			||||||
 | 
					            System.out.println("?????????????????????????");
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static boolean MyBooleanMethod() {
 | 
				
			||||||
 | 
					        System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
 | 
				
			||||||
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    void myFunction() {
 | 
					    void myFunction() {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user