String dec="123"; // 文字列を10進数値として、int型に変換する。 int d=Integer.parseInt(dec); String hex="ABC"; // 文字列を16進数値として、int型に変換する。 int h=Integer.parseInt(hex,16);