views:

112

answers:

1

How can I ask for reopen this question from user ManMohan?

my question was if it is possible to add somehow my answer to the closed question from user ManMohan... his question was closed in 45 minutes without accepted answer and I think his question shouldnt be closed, because it was answerable

his question was:
How can I print the numbers 1 through 100 without using any conditional statements? Preferably in Java.

My answer, that i did not post in time (I needed 1 min more), loops from 01 to 99 without condition, (the answer in this question is even better)

public static void print(int[] numbers){
    for (int i : numbers) {
        for (int j : numbers) {
            System.out.println("Number: " + i + j);
        }
    }
}

int[] numbs = new int[]{0,1,2,3,4,5,6,7,8,9};
print(numbs);
+1  A: 
public static void print(int[] numbers){
    for (int i : numbers) {
        for (int j : numbers) {
            System.out.println("Number: " + (i * 10 + j + 1));
        }
    }
}
lasseespeholt
yes this is the answer that i wanted to post for ManMohan... i have made a mistake that i used his question as my... mea culpa
Zavael
@Zavael What do you want then? Clear up your question. (if you have downvoted me: You're not getting any help by downvoting answers where the answerer (me) actually tries to answer a very unclear question)
lasseespeholt
@Zavael If you just want to have another persons question opened again, see meta.stackoverflow.com
lasseespeholt
i didnt downvoted you, my question was if it is possible to add somehow my answer (that was almost the same like yours) tot he closed question from user ManMohan... his question was closed in 45 minutes without accepted answer and I think his question shouldnt be closed, because it was answerable
Zavael
@lasseespeholt - thanks for the meta... :)
Zavael
@Zavael cool :)
lasseespeholt