Skip to content

Instantly share code, notes, and snippets.

@DuncantheeDuncan
Created March 27, 2022 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DuncantheeDuncan/be01100c16297b27328c083cf85cea0e to your computer and use it in GitHub Desktop.
Save DuncantheeDuncan/be01100c16297b27328c083cf85cea0e to your computer and use it in GitHub Desktop.
public class WeightClass {
boolean isWeightOneHundred(int oneHundred){return oneHundred == 100;}
public static void main(String[] args) {
WeightClass start = new WeightClass();
int releaseWeight =5;
if (start.isWeightOneHundred(releaseWeight)){
System.out.println("System Stops...");
}else {
releaseWeight+= 10;
System.out.println(releaseWeight);
if (releaseWeight == 10){
System.out.println(" Deploy th app to next bucket");
}else if(releaseWeight == 100){
System.out.println("Deploy the app files to current bucket");
}else if( 10 < releaseWeight | releaseWeight < 100){
System.out.println( "update cloudformation stack\nand push new release weight value\nto source control\n" +
"\nEnd Program");
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment