What is obvious is the customer class doesn't have a field 'i' so trying to use l.i isn't going to work. What were you trying to do?
Sir , What is obvious is you answer carelessly .
Good luck friend!Code:class calculate { private int profitRate=20; public long i,j; public void CalculatedMoneyAmount(customer obj){ i=( obj.getmoney() +( obj.getmoney())/100); System.out.println( "i = " + i ); }




Reply With Quote