- Joined
- Aug 8, 2014
- Messages
- 1,221
- Reaction score
- 75
Post a specific problem you want solved and then another will post the code that will solve it.
For example (Based on the thread "numbers"):
Problem: "I want to be able to print out numbers from 1 to 10 000"
Solution (Written in java on eclipse):
For example (Based on the thread "numbers"):
Problem: "I want to be able to print out numbers from 1 to 10 000"
Solution (Written in java on eclipse):
Code:
public class Counter {
int count;
public static void main(String[] args){
new Counter().run();
}
public void run(){
count=1;
int n=10000;
while(count<=n){
System.out.print(count+", ");
count++;
}
}
}