Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
eulerlcs committed Mar 11, 2017
1 parent 5ffab90 commit 7600898
Show file tree
Hide file tree
Showing 20 changed files with 27 additions and 104 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package shoppingcart;
package com.github.eulerlcs.jmr.challenge.zzz.master170219;

import java.io.DataInputStream;
import java.io.FileInputStream;
Expand All @@ -8,7 +8,7 @@
import java.lang.reflect.Method;
import java.util.ArrayList;

public class sc {
public class Try170205 {
public static void main(String[] args) throws Exception {
task94();
task93();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package shoppingcart;
package com.github.eulerlcs.jmr.challenge.zzz.master170219;

public class JavaTest170212 {
public class Try170212 {

public static void main(String[] args) {
t28();
Expand All @@ -17,8 +17,8 @@ public static void t28() {
}

public static void t34() {
JavaTest170212 x = new JavaTest170212();
JavaTest170212.Hello obj = x.new Hello("");
Try170212 x = new Try170212();
Try170212.Hello obj = x.new Hello("");
obj.msg += ",World!";
System.out.println(obj.msg);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
package master170219;
package com.github.eulerlcs.jmr.challenge.zzz.master170219;

import java.util.ArrayList;
import java.util.Date;

public class Master170219 {

public class Try170219 {
public static void main(String[] args) {
Integer[] a = new Integer[10];
case003(a);
}

public static void case003(Number[] n) {
// nop
}

public static void case001() {
Fruit f = new Apple();
f.setDate(new Date());
Expand All @@ -25,12 +20,28 @@ public static void case002() {
System.out.println(list1.getClass().equals(list2.getClass()));
}

public static void case004() {

public static void case003(Number[] n) {
// nop
}

public static void case005() {
}

class Fruit {
public void setDate(Object d) {
System.out.println("Fruit.setDate(Object d)");
}

// public void setDate2(Object d) {
// System.out.println("Fruit.setDate(Object d)");
// }
}

class Apple extends Fruit {
public void setDate(Date d) {
System.out.println("Apple.setDate(Date d)");
}

public void setDate2(Date d) {
System.out.println("Apple.setDate(Date d)");
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 7600898

Please sign in to comment.