Java父类和子类 Java字符串到字符串数组 Java BufferedWriter Java父类和子类 class Sample{ public void display(){ // Java Arrays with Answers System.out.println("Hello this is the method of the super class"); } } public class MyClass extends Sample { public void greet(){ System.out.println("Hello this is the method of the sub class"); } public static void main(String args[]){ MyClass obj = new MyClass(); obj.display(); obj.greet(); } } Java字符串到字符串数组 Java BufferedWriter