forked from Nabin-joshi/java_notes_and_programs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hello.java
31 lines (26 loc) · 916 Bytes
/
hello.java
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
import java.util.ArrayList;
import java.util.List;
import javax.xml.transform.SourceLocator;
class hello{
public static void main(String[] args) {
// int num=0x7E;
// int b=150;
// byte a= (byte) b;
// System.out.println(a);
// System.out.println(num);
// int num1=10_00_000;
// System.out.println(num1);
// System.out.println("Hello World");
// List list = new ArrayList();
// list.add("hello");
// list.add(2);
// System.out.print(list.get(0) instanceof Object);
// System.out.print(list.get(1) instanceof Integer);
// System.out.println(args[2]);
// String message1="Hello WOrld";
// String message2 ="Hello Nabin";
// String str = message1.substring(3,8) + message2.substring(5, 8);
// System.out.println(str);
System.out.println("apple".compareTo("aanana"));
}
}