Created
March 27, 2022 08:38
-
-
Save DuncantheeDuncan/be01100c16297b27328c083cf85cea0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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