Class aTest{
public boolean triggle;
public class aTest(){
System.out.println("just a test");
triggle = false;
}
public void anotherLine(){
System.out.println("another line");
triggle = true;
}
public void checkIfAnotherLine(){
if(this.triggle){
System.out.println("another line has been printed");
}else{
System.out.println("another line hasn't been printed");
}
}
public void main(string []args){
aTest helloworld = aTest();
helloworld.anotherLine();
helloworld.checkIfAnotherLine();
aTest anotherHello = aTest();
anotherHello.checkIfAnotherLine();
}
}