BuiltWithNOF
Read Methods

static int a = 3;

   static int b = 5;

   public static void main( String args[] )

   {

         int a=1; int c=2; int d=4;

         System.out.println(a+" "+b+" "+c+" "+d);

         a = first(a,b);

         b = a + c;

         System.out.println(a+" "+b+" "+c+" "+d);

         sec(b);

         System.out.println(a+" "+b+" "+c+" "+d);

   }

 

   static int first(int c, int d)

   {

         int b = c+1;

         System.out.println(a+" "+b+" "+c+" "+d);

         sec(b);

         a++;

         System.out.println(a+" "+b+" "+c+" "+d);

         return c;

   }

 

   static void sec(int c)

   {

         b++;

         int d = a;

         System.out.println(a+" "+b+" "+c+" "+d);

   }

 

 

[Java at Evergreen] [Syllabus] [To Do List] [Lessons/Programs] [Evaluation/Review] [Help] [FAQ/GWIFO] [Discuss/Reports] [Resources] [Readings] [Portfolio] [Instructor]