[RESOLVIDO] Converter String para Int

[code]for (Clientes clientes : list) {

        String data = clientes.getDataVencimento();
        String dia = mostra_data.dia;
        String ultimo_pgto = clientes.getUltimoMes();
        
        if (data >= dia){
            if (ultimo_pgto == mostra_data.mes){
                tabela_clientes.show();
            }
        }
    }[/code]

A parte…

 if (data >= dia) {

Eu já tentei fazer isso :

 if ( (Integer) data >= (Integer) dia) {

Mais não deu certo, alguém sabe como posso fazer ?

Integer integer = new Integer(“1”);

Tipo converte antes e depois compara.

Você pode fazer assim tb.

if ( Integer.parseInt(data) >= Integer.parseInt(dia)) {

RESOLVIDO!

Consegui aqui, valeu pela ajuda!