ok well i just started with Java and i have an assignment that is giving me a hard time what i'm supposed to do is take an entry number(int) and then arrange its digits in an ascending and a descending way, the problem is i don't know much about arrays and i wouldn't know how to use them since i'm in an introductory course. Despite my lack of knowledge inside the arrays topic i figured out most of it and should be able to use bubble sort to make this happen the true issue i have is how to split the numbers so the array can arrange them. Most examples i've seen just take individual integers not a whole number and each of its digits.

read the javadoc for the Arrays and Collections classes, there are standard functions in there for sorting.

parse it to a String, and that to an array of chars.