Quantcast
Channel: Programação - GUJ
Viewing all articles
Browse latest Browse all 33093

Como faço para formatar numero no java?

$
0
0

@Geovani_Queiroz escreveu:

NumberFormat nf = NumberFormat.getInstance();

                String mensagem = "carro: " 
                + cmbCarros.getSelectedItem().toString()
                + "\nTipo de cor: " + msgcor
                + "\nItens: " +itens 
                + "\nTotal de acrecismo: " +acrescimocor nf.getCurrency();
                +"\nValor Total: " +valortotal nf.getCurrency()
                txtmensagem.setText(mensagem.toLowerCase());

Mensagens: 2

Participantes: 2

Ler tópico completo


Viewing all articles
Browse latest Browse all 33093


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>