please help me
- From: mak <kertsalis@xxxxxxxx>
- Date: 30 Apr 2007 06:35:58 -0700
Hi , I am mak and i have a great problem with a java application . May
i hava your help , please?The program is called INCRTest.java and
calls class INCR.java.The main program sums an increment value and
puts it into a variable called total.
INCRTest.java is as follows:
public class INCRTest{
public static void main(String[] args){
INCR value=new INCR(5);
System.out.printf("prin ayxhthei : %s\n\n",value);
for(int i=1;i<=3;i++){
value=addINCRToTotal();
System.out.printf("meta thn ayxhsh %d: %s\n",i,value);
}
}
}
, INCR.java is as follows:
public class INCR{
private int total=0;
private final int INCREMENT;
public INCR(int incrementValue){
INCREMENT= incrementValue;
}
public void addINCRToTotal(){
total+=INCREMENT;
}
public String toString(){
return String.format("total= %d",total);
}
}
Compliler says that he 'cannot find symbol method addINCRToTotal()'
.
- Follow-Ups:
- Re: please help me
- From: Lew
- Re: please help me
- Prev by Date: Re: SOS PLEASE FRIENDS OF JAVA
- Next by Date: Re: please help me
- Previous by thread: Tomcat ports for web services
- Next by thread: Re: please help me
- Index(es):