Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 825a95a

Browse files
Update Scope.java
1 parent 4b2c88e commit 825a95a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎Java Codes for Beginner/Scope.java‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*This program will show scopes in Java
2+
Date - 16 Sep 2018
3+
Author - @swetabhsuman8
4+
ScopeInJava*/
15
public class Scope {
26
//because x is declared outside of any method, it is in Scope to all methods
37
//any method can access x
@@ -20,4 +24,4 @@ static void doSomethingLocally() {
2024
int y = 100; //decalring and init the variable y
2125
}
2226

23-
}
27+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /