Skip to content

Commit df1f5dc

Browse files
java basics are inclued
1 parent a5a59da commit df1f5dc

File tree

4 files changed

+35
-0
lines changed

4 files changed

+35
-0
lines changed

BasicOfJava/bin/Label/C1.class

1.45 KB
Binary file not shown.

BasicOfJava/bin/module-info.class

150 Bytes
Binary file not shown.

BasicOfJava/src/Label/C1.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package Label;
2+
3+
public class C1 {
4+
5+
public static void main (String[] args) {
6+
int x = 9/2;
7+
8+
System.out.println("the value is :" +" "+x);
9+
System.out.println(9/2f);//float
10+
System.out.println(10/3d);//double
11+
12+
boolean var = true;
13+
System.out.println(var);
14+
15+
char var1 = 'a';
16+
char var2 = 'f';
17+
String v1 = "100";
18+
String v2 = "893"; //string is a collection of char
19+
20+
System.out.println("char values are :" + var1+var2);
21+
System.out.println(var1+var2);
22+
System.out.println("value of our string : " + " "+ v1+v2);
23+
}
24+
25+
26+
27+
}

BasicOfJava/src/module-info.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
*
3+
*/
4+
/**
5+
*
6+
*/
7+
module BasicOfJava {
8+
}

0 commit comments

Comments
 (0)