Using the knowledge of computational language in JAVA it is possible to write a code that Write a program that asks the user for a quote and the author of the quote.
import java.util.Scanner;
public class QuoteMachine
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
// Ask for a quote
System.out.println("Enter a quote: ");
String qt = input.nextLine();
// Ask for the author
System.out.println("Enter the author of the quote: ");
String aut = input.nextLine();
// Create a new String that has the quote in quotation marks
// Don't forget to escape the quotation marks
String aut_qt = "\""+ qt + "\"" + "\n" + aut;
// Print the quote, then the author on the next line
// But you can only use ONE print statement!
System.out.println(aut_qt);
}
}
See more about JAVA at brainly.com/question/18502436
#SPJ1