Public? Static electricity Invalid? main(String[]args)? {
int[]a? =? { 1,2,3,4,5,6,7,8,9}; ? //? Define an integer array and give the initial value.
For what? (int? Me? =? 0; ? Me? & lt? A. length; ? i++)? {
What if? (a [me]? %? 2? ! =? 0)? {? //? Judge whether it is odd (the remainder divided by 2 is not equal to 0).
system . out . print(a[I]); ? //? Print this number
System.out.print("? ); ? //? Print another space.
}
}
system . out . println(" "); ? //? Empty lines at the end of the output
}
}