lab10 go brrr

This commit is contained in:
2025-10-19 21:30:56 -05:00
parent 8a18b04693
commit 19fb20cd98
21 changed files with 2159 additions and 13 deletions

View File

@@ -0,0 +1,24 @@
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/
package lab10_calebfontenot;
import java.util.Scanner;
/**
*
* @author caleb
*/
public class ReadWriteName1 {
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
System.out.print("Please enter your first name followed by your last name \nbeing seperated" +
" from each other by whitespace or carriage return: ");
String firstName = scan.next();
String lastName = scan.next();
System.out.println("\nHello " + firstName + " " + lastName + "!");
}
}