We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecdb4cd commit bc0f93aCopy full SHA for bc0f93a
lessons/operators.md
@@ -205,13 +205,12 @@ This category contains the following operators:
205
- `typecasting`: it converts the value of the operand to the type of the right operand.
206
eg:
207
```java
208
-public class Main
209
- {
210
- public static void main(String[] args) {
211
- char ch = 'a';
212
- int typecasted_character = (int)'a';
213
- System.out.println(ch);
214
- System.out.println(typecasted_character);
+public class Main {
+ public static void main(String[] args) {
+ char ch = 'a';
+ int typecasted_character = (int) 'a';
+ System.out.println(ch);
+ System.out.println(typecasted_character);
215
}
216
217
```
0 commit comments