PROGRAMMING AND CODE
Assignemnt #109
Code
/// Name: Justin LI /// Period: 7 /// Program Name: A Refresher Challenge /// File Name: ARefresherChallenge.java /// Date Finished: 5/5/2016 import java.util.Scanner; public class ARefresherChallenge { public static void main( String[] args ) { Scanner keyboard = new Scanner(System.in); String name; System.out.print( "Your name: " ); name = keyboard.next(); System.out.println(); if ( name.equals("Josh")) { for ( int x = 0; x <= 5; x++) { System.out.println( "Josh" ); } } while ( !name.equals("Josh")) { System.out.println(name); System.out.println(name); System.out.println(name); System.out.println(name); System.out.println(name); System.out.println(name); System.out.println(name); System.out.println(name); System.out.println(name); System.out.println(name); name = "Josh"; } } }