Computer Science, asked by sameerraikwar305, 19 days ago

writa a java program to input a string from the user perform the encoding in the following manner if input is computer and the output is dpnqvufs​

Answers

Answered by goswamisandeep473
0

Answer:

answer:

Explanation:

// Introduce the scanner tool used for reading user input

import java.util.Scanner;

public class Program {

public static void main(String[] args) {

// Create a tool for reading user input and name it scanner

Scanner scanner = new Scanner(System.in);

// Print "Write a message: "

System.out.println("Write a message: ");

// Read the string written by the user, and assign it

// to program memory "String message = (string that was given as input)"

String message = scanner.nextLine();

// Print the message written by the user

System.out.println(message);

}

}

Similar questions