thisの重複。 Flex/AS3の数値の左側にゼロを塗りつぶすにはどうしますか? printfまたはNumberFormatと同等のものがありますか? 私はこの素敵な実装や似たような探しています: public function zeroPad(number:int, width:int):String {
// number = 46, width = 4 would return
私は思っていた: Scanner scan = new Scanner(System.in);
int [] x = new int[4];
for (int i = 1; i < x.length; i++)
{
System.out.println("Enter number " + i + ": ");
x[i] = scan.nextInt();
}
Arr