Hi, I'm a beginner in java I try to write a while loop how I can choose when I want to leave It, I write that :

int z=0;
client c1= new client("roger");
labelK:while(z!=1) {
...