Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save theresajayne/173a0565f61d2ed33ac929d28c9127b6 to your computer and use it in GitHub Desktop.
Save theresajayne/173a0565f61d2ed33ac929d28c9127b6 to your computer and use it in GitHub Desktop.
public enum Count {
ONE(1),
TWO(2),
THREE(3),
FOUR(4),
FIVE(5);
private int num;
Count(int num)
{
this.num = num;
}
public int getNum()
{
return num;
}
public Count getNext()
{
for(Count cnt :Count.values())
{
if(cnt.getNum()==num+1)
{
return cnt;
}
}
return null;
}
}
@AbdulQayyum1
Copy link

Hi

@AbdulQayyum1
Copy link

WhatsApp number send me please

@AbdulQayyum1
Copy link

03446178076

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment