记录华为笔试题目是手机九宫格输入模拟。
import java.util.*;
public class Main {
static String[] one = {
",", "."};
static String[] two = {
"a", "b", "c"};
static String[] thr = {
"d", "e", "f"};
static String[] fou = {
"g", "h", "i"};
static String[] fiv = {
"j", "k", "l"};
static String[] six = {
"m", "n", "o"};
static String[] sev = {
"p", "q", "r", "s"};
static String[] ent = {
"t", "u", "v"};
static String[] nig = {
"w", "x", "y", "z"};
static String zer = " ";
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()){
String n = sc.nextLine();
String[] c = n.split("#");
StringBuffer re = new StringBuffer();
for (int i = 0; i