Come here. . Freshly baked java programming questions, search **you

This 2019 game school recruits me to feel the giant pit, the multiple-choice questions are divided into three parts, the game knowledge part, the basic data analysis part (for a paragraph of text, select data according to the title The correct one, and the basic knowledge part, this time I feel that the basic knowledge of java is less, jvm is much better. . I don’t understand at all, and the operating system is much better. . . I feel that the written test is very hanging. . Insufficient review. . The title of Niuke.com really doesn't use this and it is not the same as saying good! ! ! ! . . Game development java direction, written test questions are as follows

一, game knowledge part (selection)

二, data analysis question one (selection)

三, data analysis question two (selection)

Fourth, the technical knowledge part (selection)

五, question and answer questions (short answer part, 1. Briefly describe the process of accessing the website 2. Whether there is a ring in the single item list, if it exists, use java pseudo code to describe how to find the header )

六, Programming Questions (1)

Give a string of numbers with space spacing, find duplicate digital output

Input: 1 5 6 7 8 9 1 Output: 1 Input: 1 0 3 5 9 8 9 2 Output: 9

/** Sohu Changyou game development java programming, give a string of numbers with space spacing, find duplicate digital output
*E.g:
*Input: 1 5 6 7 8 9 1 Output: 1
*Input: 1 0 3 5 9 8 9 2 Output: 9
*This question is water. . Can be found directly with the feature, combined with add add failure, return false, you can get the result directly
*ps: All examples have been passed
*/

Package hashsetdemo;

Import java.util.HashSet;
Import java.util.Scanner;

Public class Main {

Public static void main(String[] args) {

HashSet<Integer> arr = new HashSet<Integer>();//Create Integer wrapper class set
Scanner in = new Scanner (System.in); / / input for the cattle network standard input
While (in.hasNextInt()) {
Int a = in.nextInt();
If (arr.add(a) == false) {//Use the add method to determine whether it is a duplicate.
System.out.println(a);//Repeat output
}

}

}
}

Above is for reference only. . . Infringement must be deleted