
-----------------------------------
rto
Thu Nov 27, 2008 8:38 am

if statement seeming to be ignored?
-----------------------------------

import java.io.*
class S8E1
{
public static void main (String 

It doesn't seem to matter if you enter Y or N in the overnight delivery section. either way it seems to ignore this part and automatically set overnightDeliveryCharge to 0.00 dollars.

-----------------------------------
rto
Thu Nov 27, 2008 8:39 am

RE:if statement seeming to be ignored?
-----------------------------------
and clearly that is the incorrect code .. which code do i use to post java code? :S thot it was syntax

-----------------------------------
Okapi
Thu Nov 27, 2008 9:22 am

RE:if statement seeming to be ignored?
-----------------------------------
if(overnightDelivery.equals("Y")){

}

see [url=http://leepoint.net/notes-java/data/strings/12stringcomparison.html]here for more info

-----------------------------------
rto
Thu Dec 04, 2008 10:12 am

RE:if statement seeming to be ignored?
-----------------------------------
thanks okapi i figured it out a while ago but forgot to mark the topic has answered :) thanks anyways thow
