2.2.4: Our First Integer 1 public class Variables extends ConsoleProgram 2- { 3 4 }


use java


2.2.4: Our First Integer<br>1 public class Variables extends ConsoleProgram<br>2-<br>{<br>3<br>4<br>}<br>

Extracted text: 2.2.4: Our First Integer 1 public class Variables extends ConsoleProgram 2- { 3 4 }
Write a program that declares an int named year and set<br>it equal to the current year. Then print it out.<br>If it were the year 2016, the output should say:<br>The current year is 2016<br>Note: You must include the current year and the word

Extracted text: Write a program that declares an int named year and set it equal to the current year. Then print it out. If it were the year 2016, the output should say: The current year is 2016 Note: You must include the current year and the word "year" in your output.

Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here