// Java Code:-
import java.util.*;
public class Main
{
public static void convertAcronyms(String internetAcronym)
{
if(internetAcronym.equals("AAMOF"))
System.out.println("As a Matter of Fact");
else if(internetAcronym.equals("AKA"))
System.out.println("Also known as");
else if(internetAcronym.equals("CU"))
System.out.println("See you");
else if(internetAcronym.equals("HTH"))
System.out.println("Hope this helps");
else if(internetAcronym.equals("JTLYK"))
System.out.println("Just to Let You Know");
}
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
System.out.print("Enter the acronym : ");
String str=in.nextLine();
convertAcronyms(str);
}
}
You are given a string containing a popular Internet Acronym word that contains one of the...
CSC110 Lab 6 (ALL CODING IN JAVA) Problem: A text file contains a paragraph. You are to read the contents of the file, store the UNIQUEwords and count the occurrences of each unique word. When the file is completely read, write the words and the number of occurrences to a text file. The output should be the words in ALPHABETICAL order along with the number of times they occur and the number of syllables. Then write the following statistics to...
For this lab you will write a Java program that plays a simple Guess The Word game. The program will prompt the user to enter the name of a file containing a list of words. These words mustbe stored in an ArrayList, and the program will not know how many words are in the file before it starts putting them in the list. When all of the words have been read from the file, the program randomly chooses one word...
Language: JAVAPart a: Write a class called Geniegotchi with:1. Private data fields: name (of String type, initialized to “Bob”), endurance (of int type, initialized to 4) and happiness (of int type, initialized to 3);2. Public methods:-void setName(String newName) : renames Genie with newName, printsnewName confirmation to screen;void setName(String newName) : renames Genie with newName, printsnewName confirmation to screen;- intgetEndurance() : returns current endurance;-intgetHappiness() : returns current happiness;-void feed() : this method increases current endurance by 1 if endurance is less...
Please read the article and answer about questions. You and the Law Business and law are inseparable. For B-Money, the two predictably merged when he was negotiat- ing a deal for his tracks. At other times, the merger is unpredictable, like when your business faces an unexpected auto accident, product recall, or government regulation change. In either type of situation, when business owners know the law, they can better protect themselves and sometimes even avoid the problems completely. This chapter...