Thursday, February 17, 2011

Program java Membalik Kata

import javax.swing.JOptionPane;
public class tugas {
     public static void main(String[] args)
         String input=JOptionPane.showInputDialog("Masukkan kalimat anda");
         String[] kata=input.split(" ");
         String katabaru="";
         for(int i=kata.length-1;i!=-1;i--)
             katabaru=katabaru+kata[i]+" ";


2 komentar:

Idris said...

Wah,,, ini yg aq cari-cari,, thank you Dek,, artikelnya sangt membantu.

Anonymous said...

Or maybe essential some coinage, pożyczka bez bik cała polska although only just don’t get it right up until pay day advance? It all transpires pożyczka przez internet aig to lots of Us residents in the united states regular. A specific thing appears and you also will need tu some coinage, however your check isn’t placed yet. If only there seemed to be ways to kredyt chwilówka sucha beskidzka pick up a payday loan on line, appropriate?