forked from vandana122002/Java-learning-Series
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck.java
More file actions
99 lines (91 loc) · 2 KB
/
check.java
File metadata and controls
99 lines (91 loc) · 2 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
////
////import java.lang.reflect.Array;
////import java.util.*;
////
////class c
////{
////
////}
////class A extends c
////{
////
////}class B extends A
////{
////
////}
////public class check
////{
//// public static void main(String[] args)
//// {
//// A s=new B();
////
//// if(s instanceof B)
//// {
//// System.out.println("y");
//// }else
//// {
//// System.out.println("3");
//// }
////// Scanner scan=new Scanner(System.in);
////// int n=scan.nextInt();
////// scan.nextLine();
////// ArrayList<String> a=new ArrayList<>();
////// while(n-->0)
////// {
////// String ch=scan.nextLine();
////// String[] words=ch.split(" ");
////// int j=ch.length()-1;
////// for(int i=ch.length()-1;i>=0;i--)
////// {
////// if(ch.charAt(i)==' ')
////// {
////// a.add(ch.substring(i+1,j+1));
////// j=i-1;
////// }
////// }
////// a.add(ch.substring(0,j+1));
////// for(String i:a)
////// {
////// System.out.print(i+" ");
////// }
////// }
////
//// }
////}
//
//
//
//class Animal {
//
// static void method(Animal a) {
// if (a instanceof Animal) {
// System.out.println("ok downcasting performed");
//
// }
// }
//}
//public class check extends Animal{
//
//
// public static void main (String [] args) {
// Animal a=new check();
// System.out.println(a instanceof Animal);
// check.method(a);
// }
//
//}
public class check
{ String s;
public static void main(String[] args)
{
check c1=new check();
char c=0XFace;
System.out.println(c);
int a=0100;
System.out.println(a);
double d=0XFace;
System.out.println(d);
int[] n=new int[9];
System.out.println(c1.s);
}
}