Question: Write a method that removes the duplicate elements from an array list of integers using the following header:
public static void removeDuplicate(ArrayList
Tag Archives: java
Check high school subjects in Java
Question: Using Java, write a program to compare three Array Lists containing a student high school subjects and return the subjects they passed. The program will be used by the University of Java administration staff to check minimum requirements. Assume all Array Lists are to be created in this Java program without any user input. Assume at this time, there will be no changes to the Array Lists once they are created. An Array List must include all subjects offered by Alberta public school system. Another Array List must include the subject the students has taken. Finally a third Array List must include only the subjects which the students has scored over 85% final grade. Student must obtain at least 85% overall grade to meet the minimum requirements (“passed”) for the Computer Science program.
Simple encryption program in Java
Here is a simple Java program that takes user inputs for the message (encrypted or human readable) then either encrypt or decrypt the message based on provided key. This program is not intended to run as a real world modern encryption and encryption program, by to learn how to use while and for loops.
Check vowel or consonant in Java
Question: Write a program that prompts the user to enter a letter and check whether the letter is a vowel or consonant. Must display any input with non-letter characters. This is based on a question from Java textbook by Dr. Daniel Liang.
Tic Tac Toe game in Java
This is an example of using nested while loops, char arrays and if statements. Please note this is based on tutorial by Alex Lee. However, a modification was made to the code to remove a bug. The original code by the author would allow the player to place the position on top of the CPU position. Please subscribe to Alex’s YouTube channel and support him.