Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class phoneAlpha {
- public static void main(String[] args)
- {
- char[][] alphaNumbers = {{'a','b','c','!'}, {'d','e','f','!'}, {'g','h','i','!'},
- {'j','k','l','!'},{'m','n','o','!'},{'p','q','r','s'},{'t','u','v','!'},
- {'w','x','y','z'}};
- // use scanner here to get an input (but im lazy so im not gonna type it out)
- // then get the last seven digits, let's call it newNumber (for example 457-9877)
- int newNumber = 4579877;
- for (int i = 0; i < len(newNumber); i++){
- // THIS IS WHERE I AM STUCK.
- // another for loop here prob
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement