M7_namaWhile
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package Matkul; /** * * @author kumal */ public class M7_namaWhile { public static void main(String[] args) { java.util.Scanner input = new java.util.Scanner(System.in); System.out.print("Masukkan nama: "); String nama = input.nextLine(); int i=1; while(i<=100) {System.out.println(nama); i++;} } }