[java] TextMsg
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
- /*The purpose of this program is to prompt the user
- to enter a common text message abbreviation and determine
- which abbreviation was entered and what it means.
- Created w/ VSCode
- */
- import java.util.Scanner;
- public class TextMsg {
- public static void main(String[]args){
- Scanner scnr = new Scanner(System.in);
- String userString;
- System.out.println("Input an abbreviation:");
- userString = scnr.next();
- //fill in the required expressions within the parens to match each abbreviations
- //hint: can you use == with strings?
- if ( ) {
- System.out.println("for what it's worth");
- }
- else if ( ) {
- System.out.println("worst of all time");
- }
- else if ( ) {
- System.out.println("i don't really know");
- }
- else if ( ) {
- System.out.println("fear of missing out");
- }
- else if ( ){
- System.out.println("in real life");
- }
- else {
- System.out.println("Unknown");
- }
- }
- }
Editor
You can edit this paste and save as new: