hello everyone can u help me solve my problem...
i want to call a class in another class but i dont know how..example.
public class Example{
public static void main(String[] args){
int x;
for(x = 0; x< 10; x++){
System.out.print(x + " ");
}
System.out.println();
}
}
and i want it to call in another class like:
public class Example1{
public static void main(String[] args){
//some codes to insert to call it
}
}
to display the output of: 0 1 2 3 4 5 6 7 8 9
can u help me solve it..