Repository navigation
Expand file tree
/
Copy pathTest.java
More file actions
76 lines (60 loc) · 2.24 KB
/
Copy pathTest.java
File metadata and controls
76 lines (60 loc) · 2.24 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
// private double kWh;
// private double rate = 0.7;
// private double bill;
// public void addKWh(double kWh) {
// if (kWh > 0){
// this.kWh += kWh;
// setBill(this.kWh);
// }
// }
// public void setBill(double kWh) {
// bill = kWh * rate;
//interface Readable {
//// public void readBook();
//// public void setBookMark();
////}
////abstract class book implements Readable { //line n1
//// public void readBook(){}
//// //line n2
////}
////class EBook extends Book { //line n3
//// public void readBook() {
//// //line n4
//public class EBook {
// String ta = "A ";
// ta = ta.concat("B ");
// String tb = "C ";
// ta = ta.concat(tb);
// ta.replace('C','D');
// ta = ta.concat(tb);
// System.out.println(ta);
// int a[] = {1, 2, 3, 4, 5};
// for (int e = 0; e < 5; e += 2) {
// System.out.print(a[e]);
// String shirts[][] = new String[2][2];
// shirts[0][0] = "red";
// shirts[0][1] = "blue";
// shirts[1][0] = "small";
// shirts[1][1] = "medium";
// for (int index = 0; index < 2; ) {
// for (int idx = 0; idx < 2; ) {
// System.out.print(shirts[index][idx] + ": ");
// idx++;
// }
// index++;
public class Test {
// void readCard(int cardNo) throws Exception {
// System.out.println("Reading card");
// }
// void checkCard(int cardNo) throws RuntimeException { //line n1
// System.out.println("Checking card");
// }
// public static void main(String[] args){
// Test ex = new Test();
// int cardno = 12344;
// ex.checkCard(cardNo); //line n2
// ex.readCard(cardNo); //line n3
//
//
// }
}