Advertisement
broth

Untitled

Feb 2nd, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. public class phoneAlpha {
  2. public static void main(String[] args)
  3. {
  4. char[][] alphaNumbers = {{'a','b','c','!'}, {'d','e','f','!'}, {'g','h','i','!'},
  5. {'j','k','l','!'},{'m','n','o','!'},{'p','q','r','s'},{'t','u','v','!'},
  6. {'w','x','y','z'}};
  7.  
  8.  
  9. // use scanner here to get an input (but im lazy so im not gonna type it out)
  10. // then get the last seven digits, let's call it newNumber (for example 457-9877)
  11. int newNumber = 4579877;
  12.  
  13. for (int i = 0; i < len(newNumber); i++){
  14. // THIS IS WHERE I AM STUCK.
  15.  
  16. // another for loop here prob
  17. }
  18.  
  19.  
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement