class Main {
 	public static void main(String[] args) { 
 		Teste1 teste = new Teste1();
 		System.out.println("Criou a classe");
 		teste.Teste1();
 	}
}

class Teste1 {
    public void Teste1() {
        System.out.println("Olá");
    }

    public void Teste2() {
        System.out.println("Oi");
    }
}

//http://pt.stackoverflow.com/q/197666/101