一. 数组 1.定义一个数组 games = ["英雄联盟", "绝地求生", "钢铁雄心"] puts games 2.数组的循环 games.each do |geam| puts "玩<#{geam}>" end games.each_with_index do |game, index| puts "我喜欢的第:#{index+1}个游戏是:#{game}" end 注:相当于Pytho…
把字符串数组转换为16进制字符串 import java.security.MessageDigest; public class StringUtil { public StringUtil() { super(); } public static String str; public static final String EMPTY_STRING = ""; private final static String[] hexDigits = { "0", &q…