Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Exercise2_19 {
- public static void main(String[] args) {
- //(int) gives an integer the store of value, can run without (int) when integer is named(i.e. 'A') however will retain for sake of future use
- char x = (int)'A';
- long time = System.currentTimeMillis();
- int timeMilli = (int)(time%26);
- timeMilli+= x;
- char chr = (char)timeMilli;
- System.out.print(chr);
- }
- }
Add Comment
Please, Sign In to add comment