Well, I had guessed that the first method represents a bubble sort.
The fullBucket method counts whether a particular number appears in an array, and sets its value to 1 (it starts with 0 then ++). Then if the same number appears in the other array, it sets the number to 2. Then if it isn't 0 you print it. That sounds the same as a sort of set union, which appears correctly to implement what you want.
The emptyBucket method seems to print out those members in both arrays similarly, a sort of set intersection.
And I think the arrange method does actually get rid of the 0s. Only you never print it out.
I would have preferred to see the arrays set up as fields in the class and the methods not static. Better object-oriented style.
I would suggest you would get a better mark as a beginner by always putting {} round the bodies of your for-loops and if blocks. Apart from that it is good.
