Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- int number=4752;
- boolean is7onThirdPlace=false;
- int secondNumber=number/100;
- if(secondNumber%10==7)
- {
- is7onThirdPlace=true;
- }
- System.out.println(is7onThirdPlace);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment