Skip to content

Commit d8e95a5

Browse files
update
1 parent 4ca5959 commit d8e95a5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Calculator-project/.project

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
</natures>
2323
<filteredResources>
2424
<filter>
25-
<id>1612621132274</id>
25+
<id>1665915642182</id>
2626
<name></name>
2727
<type>30</type>
2828
<matcher>
2929
<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>
3131
</matcher>
3232
</filter>
3333
</filteredResources>

Correct Number Guess Game/Game.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public void TakeUserinput(){
1313
System.out.print("Guess a no:");
1414
Scanner a1 = new Scanner(System.in);
1515
inputno= a1.nextInt();
16-
16+
a1.close(); //scanner closed
1717
}
1818
public void SetnoofGuesses(int Guesses){
1919
this.noofGuesses=Guesses;
@@ -41,7 +41,7 @@ else if(inputno<Rando){
4141
}
4242
}
4343

44-
44+
//starting main function
4545
public class Game {
4646
public static void main(String[] args) {
4747
Game1 gaming=new Game1();
Binary file not shown.

0 commit comments

Comments
 (0)