-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJava_Class.java
More file actions
41 lines (37 loc) · 1.22 KB
/
Java_Class.java
File metadata and controls
41 lines (37 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package my_frist_java;
/**
* @author ARIFUL ISLAM
*/
/*Ariful Islam
01910670609
Monirampur
Jashore
*/
public class Java_Class {
/*public static void main(String[] args){
System.out.println("Ariful Islam \nArif\nMonirampur Model Polytechnic\n01725624076\nMonirampur,Jashore");
//System.out.println("1\t2\t3\t4");//tab
System.out.println(" \"Ariful Islam\" ");
System.out.println("");
}*/
public static void main(String[] args){
boolean b = true;
char c='a';
short s = 3264;
int i= 436378;
float f = 936.86f;
double d = 3456.64797;
System.out.printf("Boolean b = %b\n",b);
System.out.printf("char c = %c\n",c);
System.out.printf("Short s = %s\n",s);//%d
System.out.printf("Int I = %d\n",i);
System.out.printf("Float F = %f\n",f);
System.out.printf("Double d %.2f\n",d);
/*System.out.println("Boolean = "+b);
System.out.println("Char = "+c);
System.out.println("Short = "+s);
System.out.println("Int = "+i);
System.out.println("Float = "+f);
System.out.println("Double = "+d);*/
}
}