Skip to content

Commit f067138

Browse files
basic structure of java file
1 parent d926584 commit f067138

File tree

4 files changed

+45
-0
lines changed

4 files changed

+45
-0
lines changed
1.18 KB
Binary file not shown.

FirstProject/bin/module-info.class

151 Bytes
Binary file not shown.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
package label;
2+
3+
import java.util.Scanner;
4+
5+
public class MyClass {
6+
7+
public static void main(String[] args) {
8+
9+
Scanner sc = new Scanner(System.in);
10+
System.out.println("enter some number");
11+
String Str1 = sc.nextLine();
12+
13+
System.out.println("enter new number");
14+
System.out.print(Str1);
15+
16+
17+
18+
int my_val = 10;
19+
short vbl = 184;
20+
float vbl1 = (float)169.1;
21+
double vb3 = 184.11;
22+
char vbl22 = 'a';
23+
boolean trueorfalse = true;
24+
25+
System.out.println(my_val);
26+
System.out.print(vbl);
27+
System.out.println(vbl1);
28+
System.out.println(vb3);
29+
System.out.println(vbl22);
30+
System.out.println(trueorfalse);
31+
32+
33+
34+
35+
}
36+
37+
}

FirstProject/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 FirstProject {
8+
}

0 commit comments

Comments
 (0)