package ntut.csie.robusta.codegen;

public class VariableDeclarationStatementSampleCode {
	private String fieldString;
	
	public VariableDeclarationStatementSampleCode() {
		fieldString = "I can can a can.";
	}
	
	public void testField() {
		fieldString.compareTo("Are you kidding me?");
		fieldString.toLowerCase();
	}
	
	public void declareInMethodUseInIfStatement() {
		String localString = "千山鳥飛絕";
		int nothing = 1;
		if(nothing == 1) {
			localString.getBytes();
			localString.intern();
		}
	}
	
	public void declareSameNameInstanceInDifferentMethodDeclaration_MD1() {
		String sameName = "一粥一飯，當思來處不易";
		sameName.toCharArray();
	}
	
	public void declareSameNameInstanceInDifferentMethodDeclaration_MD2() {
		String sameName = "一粥一飯，當思來處不易";
		sameName.toCharArray();
	}
}
