fix typo misspelling of increment() (#20769)
parent
2e92a63a69
commit
737739eb60
|
@ -62,7 +62,7 @@ public class MyClass {
|
|||
}
|
||||
// Outputs "2"
|
||||
```
|
||||
The output is 2 because it gets incremented by static method `increament()`. Similar to static variables, static methods can also be accessed using instance variables.
|
||||
The output is 2 because it gets incremented by static method `increment()`. Similar to static variables, static methods can also be accessed using instance variables.
|
||||
|
||||
## Static Blocks
|
||||
|
||||
|
|
Loading…
Reference in New Issue