k im new and i just want to make a program that uses for loops to somehow interate and print out every unicode symbol from 0001 to 9999.
basically all i can come up with is I would need to use:
public static void main(String[] arguments) {
String[] A = new String[9999];
int count = 0001;
for(i=0;i<=9998;i++){
A[i] = "
and use a for loop to iterate through the array printing out every unicode symbol.
The two things i cant figure out is how to
1. use for loops to put the unicode numbers into each cell of the array.
2. make it so they all print like 20 symbols to a line or all on the same line.
For inserting the numbers i came up with this:
int i,a,z,x;
for(i=0;i<10;i++)
{
System.out.println(i);
for(a=0;a<10;a++)
{
System.out.println(a);
for(z=0;z<10;z++)
{
System.out.println(z);
for(x=1;x<10;x++)
{
System.out.println(x);
}
}
}
}
}
}
The System.out.println's are there just so I could see if it would hop out of the for loop and iterate in the next highest one.
thats just to make it got 0001 0002 0003 0004 and so on up to 9999, but what i cant figure out is how to take that 0001 and put it into the cell A[0] of the string array 0.0
can you help me out here?
sry for my sloppy explanation of where im at, even im confused on how i was trying to solve it.
and the nested for loops work like the odometer on a car like they should, but how do i tie the 2 i want together to make it iterate through the array while inserting the proper value into each slot?
one thing that came to my mind was a thread, buuuttt im not to familiar with the language yet.
:::note:::
this isnt hw (summer break) just a little something i wanted to do to see all the unicode symbols and to fool around with for loops :)
GIMPS