Demo entry 6749153

java

   

Submitted by anonymous on Jun 12, 2018 at 11:32
Language: Java. Code size: 362 Bytes.

public class ι‡ζŽ’εΊ{  
    int a = 0;  
    boolean flag = false;  
    public void writer(){  
        a = 1;                          //1  
        flag = true;                    //2  
    }    
    public void reader(){  
        if(flag){                           //3  
            int i = a * a;                  //4  
        }      
    }  
}  

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).