G
gandhi.pathik
pl. look at the code first
public class Experiment
{
static
{
System.out.println("1");
}
//don't touch it
public static void main(String[] a)
{
System.out.println("2");
}
//don't touch it
}
In the above code i want to print output as (in order)1,2,3 without
modifying the block which is marked as don't touch it...
can anyone pl. give me suggestion how i can do it?
Regards,
pathik s gandhi
public class Experiment
{
static
{
System.out.println("1");
}
//don't touch it
public static void main(String[] a)
{
System.out.println("2");
}
//don't touch it
}
In the above code i want to print output as (in order)1,2,3 without
modifying the block which is marked as don't touch it...
can anyone pl. give me suggestion how i can do it?
Regards,
pathik s gandhi