public class MainClass{ String msg = "Type is " ; public void showType( int n ) { String tmp ; if( n > 0 ) tmp = "positive"; System.out.println( msg + tmp ); } }