- Use a for loop for running from 0 to 2^25.
- Use
Integer.tSotring( i, radix )
orInteger.toBinaryString(i)
to convert to a binary representation. - Add padding zeros to fill those numbers, that do not have 25 (binary) digits.
- Write to file or console.
The term "brute force" implies, that the solution is not that smart, else you wouldn't have to use brute force ...