Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个数组:
char[] A={"A","B","C"}; char[] B={"1","2","3"};
如何将 A 数组解密为 B。例如,如果我写 ABA,它应该变成 121。
您可以使用一个简单的字典,将您想要的“B”值映射到您给“A”的值。
你可以谷歌“java字典”