import java.util.Scanner public class WeatherDaily i public static void main (St
ID: 3591739 • Letter: I
Question
import java.util.Scanner public class WeatherDaily i public static void main (String[] args) throws //thowing an Exception java.net.MalformedURLException, java.io.IOException t // Scanner file exception java.util.Scanner keyboard - new java.util.Scanner (System.in); System.out.print ("Enter the URL >"): I/ user enters the url link String filenamekeyboard.next O java.net . URL webFile new java.net.URL (filename) ; java.util. Scanner file!n = new java.util.Scanner (webFile.openStream))1/computer opens link int year, month, day, precipitation, snow, dailyHigh, dailyLow: // adding all my integers int monthSum; int cayorYear: Day of the year for first of month / static final int [ ] monthSum= {0, 31, 59, 90, 120, 151, 181, 212, 43, 273, 304, 334, 366);Explanation / Answer
In java, all your methods(functions) need to be inside a class. If you face any other problem after putting everything inside a class, please copy paste your code over here rather than putting a snap of it, I'll be happy to help.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.