level 1
liufuling14
楼主

用vim执行java出现方法不能调用。请大家帮我看下问题在哪里代码:
package helloapp;
class helloapp{
public static void main(String[] args) {
System.out.println("hello world!");
hello1 he = new hello1();
he.to();
}
}
方法类
package helloapp;
/*************************************************************************
> File Name: hello1.java
> Author:
> Mail:
> Created Time: 2015年06月10日 星期三 15时14分15秒
************************************************************************/
public class hello1 {
int s;
public String to () {
s='c';
String cd="ceshi2015";
System.out.println(cd);
System.out.println(s);
return "zheshi ";
}
}