import java.util.Scanner; public class NewClass { public static void main(String[] args){ Scanner input = new Scanner(System.in); int n; String[] data = new String[10]; System.out.print("Masukan jumlah data = "); n = input.nextInt(); for(int i=1;i<=n;i++){ System.out.print("data ke "+i +"="); data[i] = input.next(); } String gabung=" "; for(int i=1;i<=n;i++){ gabung = gabung +data[i]; System.out.print("hasil ="+gabung); } }} |
0 komentar:
Posting Komentar
: Ayoo sharingg.. :D