sudo apt install openjdk-8-jdk-headless
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Positive number | |
Use the keyboard to enter three integers. Display the number of positive numbers in the original set. | |
*/ | |
import java.io.*; | |
import java.util.Scanner; | |
public class Solution { | |
public static void main(String[] args) throws Exception { |
A Java assignment taken from the course: Software Development Fundamentals
I did not create this assignment. The coded solution is mine. This was a Java practice project which helped me remember how to work with a 2D array.
Create a class called WhackAMole.
It contains three integer instance variables called score
, molesLeft
, and attemptsLeft
. Make one more instance variable called moleGrid
which is a 2-dimensional array of chars.