public class CBRCBV {
	public static void main(String[] args) {
		TestClass testObj = new TestClass();
		int testVar;
		Byte testWrapperType;

		testObj.setS((short) 42);
		testWrapperType = new Byte((byte) 12);
		testVar = 50;

		System.out.println("values before method run");
		System.out.println("testVar = "+testVar);
		System.out.println("testWrapperType = "+testWrapperType.byteValue() );
		System.out.println("testObj.s = "+testObj.getS() );

		aMethod(testVar, testWrapperType, testObj);

		System.out.println("values after method run");
		System.out.println("testVar = "+testVar);
		System.out.println("testWrapperType = "+testWrapperType.byteValue() );
		System.out.println("testObj.s = "+testObj.getS() );
	} //main()

	private static void aMethod(int i, Byte b, TestClass tc)	{
		i++;
		b = new Byte((byte) 0);
		tc.setS( (short) (tc.getS()+1) );

		System.out.println("values within method after modification:");
		System.out.println("testVar = "+i);
		System.out.println("testWrapperType = "+b.byteValue() );
		System.out.println("testObj.s = "+tc.getS() );
	} //aMethod()
} //class CBRCBV

class TestClass {
	private short s;

	public short getS() {
		return s;
	} //getS

	public void setS(short s) {
		this.s = s;
	} //getS()
} //TestClass