Question: (JavaScript) I'm working with methods and attempting to match and compile this file. In order to do so, the proper literal values must be entered
(JavaScript)
I'm working with methods and attempting to match and compile this file. In order to do so, the proper literal values must be entered where the question marks are. Only thing is I keep getting errors and am not sure what exactly I'm doing wrong.

public static void main(String[] args) { System.outaprintln("Thamberducantushould usome before Harsenalphabetical mim matcomesBeforel???))) System.qutua perintlomhalfmifm. Alman mamhalflfil???llis System.cut println("shartalmhiman mampil???)da System.qutaprintln("Thembiastmettermfuthenkardmolamamisam. InficstLetterd???lla System.outaprintln("M1337 mm 1337mm times. 1337(???) l } public static double pi(){ return 3.14; public static int times1337 (int x) { return x * 1337; } public static double halfof(double y) { return y / 2; } public static String firstLetter (String word) { return word. substring(0,1); } public static boolean comesBefore(String a, String b) { return a.compareToIgnoreCase(b)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
