在线等,一直到问题解决为止。。
解决方案 »
- spring3mvc + hibernate + freemarker + jquery + json想看就进来吧
- DWR调用Spring管理的Service发生的异常
- 求用java生成html页面的缩略图用于预览的方法
- Hibernate多对多出问题
- ●●●● 现在用STRUTS2的公司多吗?
- jsp 如何实现 即事提醒、消息?
- hql语句中如何加入/*+RULE*/这种语句!
- 请教apache和tomcat整合的问题.apache2.x+tomcat5.x
- ejb3.0里的问题illegal character: \64, @符号后面的不能通过编译,高人指点啊
- 如何在WLS7中部署一个Servlet和一个JSP?
- Hibernate一对多的问题,请教高手,解答必给分
- eclipse和myeclipse有什么联系和区别?
{
public int add(int i);
}public class A1 implements Amethod
{
public int add(int i)
{
return i*100;
}
}public class A2 implements Amethod
{
public int add(int i)
{
return i*200;
}
}public class Main
{
public static void main(String[] args)
{
Amethod a1 = new A1();
Amethod a2 = new A2();
int sum = a.add(20);
System.out.println(sum);
sum = a2.add(20);
System.out.println(sum);
}
}