File tree 4 files changed +4
-4
lines changed
Correct Number Guess Game
Department-Wise Salary Calculation/target/classes/assessment
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 22
22
</natures >
23
23
<filteredResources >
24
24
<filter >
25
- <id >1612621132274 </id >
25
+ <id >1665915642182 </id >
26
26
<name ></name >
27
27
<type >30</type >
28
28
<matcher >
29
29
<id >org.eclipse.core.resources.regexFilterMatcher</id >
30
- <arguments >node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments >
30
+ <arguments >node_modules|\ .git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments >
31
31
</matcher >
32
32
</filter >
33
33
</filteredResources >
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public void TakeUserinput(){
13
13
System .out .print ("Guess a no:" );
14
14
Scanner a1 = new Scanner (System .in );
15
15
inputno = a1 .nextInt ();
16
-
16
+ a1 . close (); //scanner closed
17
17
}
18
18
public void SetnoofGuesses (int Guesses ){
19
19
this .noofGuesses =Guesses ;
@@ -41,7 +41,7 @@ else if(inputno<Rando){
41
41
}
42
42
}
43
43
44
-
44
+ //starting main function
45
45
public class Game {
46
46
public static void main (String [] args ) {
47
47
Game1 gaming =new Game1 ();
You can’t perform that action at this time.
0 commit comments