test

public class TestVarAccess1
{
	private int instanceVariable;
	private static int staticVariable;
 
	void localVarAccess(int val)
	{
		int localVariable = 0;
		for (int i = 0; i < val; i++)
		{
			localVariable += i;
		}
	}
	void staticVarAccess(int val)
	{
		int localVar = staticVariable;
		for (int i = 0; i < val; i++)
		{
			localVar += i;
		}
		staticVariable = localVar;
	}
	void instanceVarAccess(int val)
	{
		int localVarbl = instaceVariable;
		for (int i = 0; i < val; i++)
		{
			localVarbl += i;
		}
		instanceVariable = localVarbl;
	}
}

Download this snippet

Twitter Twitter

1 Comments to “ test”

  1. Anonymous  on Jun 10, 2010

    AqMoXC <a href="http://ovlwnhbzfnqa.com/">ovlwnhbzfnqa</a>, [url=http://qhbijkfgxzth.com/]qhbijkfgxzth[/url], [link=http://umgoepidkokj.com/]umgoepidkokj[/link], http://rfvcgywjunsa.com/

Leave a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>