I need help with this Java Assignment. Thanks Chat Server Project with a GUI for
ID: 3839398 • Letter: I
Question
I need help with this Java Assignment. Thanks
Chat Server Project with a GUI for the Clients Create a chat server-client pair with a GUI that will allow users to send private plain-text messages, and private encrypted messages to a u ser of their choice as well as group messages to all connected clients REQUIREMENTS: Create a group chat server that clients will connect to. The default behavior when a message is sent from a client is that it goes through the server and the server sends the message to ALL connected recipients. The client should have the option of sending a private message, by specifying who they want to send a message to. The client should be able to send an encrypted private message using a OneTimePad, by specifying who they want to send a message to and that they intend to encrypt it. (Messages get encrypted on the originating client's end and decrypted on the receiving client's end)Explanation / Answer
import java.util.Scanner; public class ScannerAndKeyboard { public static void main(String[] args) { Scanner s = new Scanner(System.in); System.out.print( "Enter your name: " ); String name = s.nextLine(); System.out.println( "Hello " + name + "!" ); } }