forked from Hackveda/Java-Interns-Code-Submissions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJavaApplication1.java
More file actions
59 lines (45 loc) · 1.37 KB
/
JavaApplication1.java
File metadata and controls
59 lines (45 loc) · 1.37 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
*/
package javaapplication1;
import static jdk.nashorn.api.scripting.ScriptUtils.convert;
/**
*
* @author Parthkharva
*/
public class JavaApplication1 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
int a = 10;
int b = 52;
float x= 123.4556655f;
System.out.println(x);
double dd = 456/45;
System.out.println(dd);
String c = "parth";
String name = null;
System.out.println("name:"+c+" : "+name);
int d =++b;
System.out.println(d);
int e =b++;
System.out.println(e);
int f = a--;
System.out.println(f);
int g = --a;
System.out.println(g);
int h = a+b;
System.out.println(h);
int i = a-b;
System.out.println(f);
int j = a*b;
System.out.println(j);
int k = a/b;
System.out.println(k);
boolean bl = true;
System.out.println(bl);
System.out.println(!bl);
}
}