Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class PlateCodingChecker {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- System.out.print("Enter the plate number (e.g., ABC 1234): ");
- String plateNumber = scanner.nextLine().trim();
- char lastChar = plateNumber.charAt(plateNumber.length() - 1);
- int lastDigit = lastChar - '0';
- String codedDay = "";
- scanner.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment