hello,
is there any function in java that can give me 2^n binary combinations. as an example, if the value of n = 2, output should be: 00, 01, 10, 11 ??

how hard do you think it is to write that?
try, and within about ten minutes there will be one.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.