Guest User

Untitled

a guest
Oct 16th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. public class Exercise2_19 {
  2. public static void main(String[] args) {
  3. //(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
  4. char x = (int)'A';
  5. long time = System.currentTimeMillis();
  6. int timeMilli = (int)(time%26);
  7. timeMilli+= x;
  8. char chr = (char)timeMilli;
  9. System.out.print(chr);
  10. }
  11. }
Add Comment
Please, Sign In to add comment