Rabu, 19 Desember 2012

Coding Geser Huruf java Dengan Array





import java.io.*;
class geser
{
            public static void main (String[] args)
            throws Exception
            {
                        DataInputStream dis = new
                        DataInputStream (System.in);
                        Int a;
                        System.out.print(“Masukkan batas geser  =”);
                        a=Integer.parseInt(dis.readLine ());
                        System.out.print(“Masukkan Kalimat =”);
                        String kalimat = dis.readLine ();
                        Char huruf []=kalimat.toCharArray ();
                        For (int i=0;i<huruf.length;i++)
                        {
                                    System.out.print(“Huruf”+huruf [i]+”=”);
                                    huruf [i] + =a;
                                    System.out.println(huruf[i]);
                        }
            }
}


Label: ,

2 Komentar:

Pada 27 Desember 2013 pukul 05.52 , Anonymous internet mengatakan...

makasih mas udah membantu

 
Pada 27 Agustus 2014 pukul 03.32 , Anonymous Tips Trik Gratis Internet mengatakan...

Wah terima kasih gan artikel nya cihuy

 

Posting Komentar

Berlangganan Posting Komentar [Atom]

<< Beranda