/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
// First initialization of array
int[] array = new int[] { 1, 2, 3 };
// Prints "1 2 3 ".
for (int i : array) {
}
// Re-initializes array to a new int[] array.
array = new int[] { 4, 5, 6 };
// Prints "4 5 6 ".
for (int i : array) {
}
// Uncomment to get compile-time error!
//Can't re-initialize an array via shortcut
// syntax with array initializer.
//array = { 1, 2, 3, 4 };
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCS8vIEZpcnN0IGluaXRpYWxpemF0aW9uIG9mIGFycmF5CgkJaW50W10gYXJyYXkgPSBuZXcgaW50W10geyAxLCAyLCAzIH07CgkJCgkJLy8gUHJpbnRzICIxIDIgMyAiLgoJCWZvciAoaW50IGkgOiBhcnJheSkgewoJCSAgICBTeXN0ZW0ub3V0LnByaW50KGkgKyAiICIpOwoJCX0KCQkKCQkvLyBSZS1pbml0aWFsaXplcyBhcnJheSB0byBhIG5ldyBpbnRbXSBhcnJheS4KCQlhcnJheSA9IG5ldyBpbnRbXSB7IDQsIDUsIDYgfTsKCQkKCQkvLyBQcmludHMgIjQgNSA2ICIuCgkJZm9yIChpbnQgaSA6IGFycmF5KSB7CgkJICAgIFN5c3RlbS5vdXQucHJpbnQoaSArICIgIik7CgkJfQoJCQoJCS8vIFVuY29tbWVudCB0byBnZXQgY29tcGlsZS10aW1lIGVycm9yISAKCQkvL0Nhbid0IHJlLWluaXRpYWxpemUgYW4gYXJyYXkgdmlhIHNob3J0Y3V0IAogICAgICAgIC8vIHN5bnRheCB3aXRoIGFycmF5IGluaXRpYWxpemVyLgoJCS8vYXJyYXkgPSB7IDEsIDIsIDMsIDQgfTsgCiAgICB9Cn0=