Don't let "the system" or the IDE be the boss of you or your code. You need to learn the whys and hows of doing it correctly.
Instead of using static variables as you posted, use instance variables as I suggested, then DON'T use those variables in the main method. Either use other variables local to main() OR use constants. Using local variables is preferred, because that will allow you to change the program's behavior by changing the value of a variable rather than changing every constant, remembering why/what the constant should change to, etc.
Start simple. Comment out most of your main() method and reduce it to a couple working lines. Something like:
public static void main( String[] args )
{
int firstStepValue = 1;
int secondStepValue = 10;
//create a new counter with a step value of 1
CounterTester counter = new CounterTester( firstStepValue );
counter.increase( firstStepValue ); //add 1
System.out.println( "Expected Count: 1 -----> Actual Count: " +
counter.getValue() );
/*
counter.increase( 1 ); //add 1
System.out.println( "Expected Count: 2 -----> Actual Count: " +
counter.getValue() );
counter.decrease( -1 ); //subtract 1
System.out.println( "Expected Count: 1 -----> Actual Count: " +
counter.getValue() );
CounterTester counter1 = new CounterTester(
10 ); //create a new counter with a step value of 10
System.out.println( "Expected Count: 0 -----> Actual Count: " +
counter1.getValue() );
counter1.increase( 10 ); //add 10
System.out.println( "Expected Count: 10 ----> Actual Count: " +
counter1.getValue() );
counter1.decrease( -10 ); //subtract 10
System.out.println( "Expected Count: 0 -----> Actual Count: " +
counter1.getValue() );
counter1.decrease( -10 ); //subtract 10
System.out.println( "Expected Count: -10 -----> Actual Count: " +
counter1.getValue() );
*/
}
If that little bit or working code doesn't work as expected, figure out why and fix it. (It actually does work as it should, but your expectations are wrong. Your expectations may be what you have to fix.)
BTW - Understanding this may be your first step (one of many) in understanding a most basic Object Oriented Programming principle, what objects are and a little bit about how to use them.