the two thread I wrote:
CalculateBill.java
CalculateBillwithdiscount.java

04-13-2008, 08:47 PM

IbrahimAbbas

I wrote too:
BillStruct.java
to save the items in market loading data from xml file
then when the customers buy
somthing I use this BillStruct to save their buying info

04-13-2008, 08:55 PM

IbrahimAbbas

1 Attachment(s)

policy

policy file

04-13-2008, 09:52 PM

IbrahimAbbas

sorry I forget you have to delete the mypackage line in all .java files...

04-13-2008, 10:10 PM

IbrahimAbbas

1 Attachment(s)

modified attachment mypackage

this one final copy

04-13-2008, 11:57 PM

IbrahimAbbas

maybe I solved it, I wrote implements java.io.Serializable in BillStruct

04-14-2008, 02:51 AM

IbrahimAbbas

1 Attachment(s)

Now, the code I wrote working
but I have this problem:
the result of bills printed in MarketServer not in CustomersClient?
what do I do to solve this probleme, please, no one here in java-forums!
see attachment last version.

04-14-2008, 02:20 PM

IbrahimAbbas

I solved the problem: I used
a boolean finsided in threads to ensure that the value I want use it in String sum

04-14-2008, 02:29 PM

Java Tip

Wow, Ibrahim.

Congratulations, you have a very long conversation with yourself here.

Just kidding.. :P It is good for others to know your problem and solution.

By the way, welcome to the forum.

04-14-2008, 09:24 PM

IbrahimAbbas

1 Attachment(s)

Final Version

Thanks...hhh
it's my way in life...
you can see the last version: new attachment file