I'm trying to test whether the os is Windows XP by using the system.property("os.name") compared to a string "Windows XP". It is not working and I cannot figure out why. Can anyone point me in the right direction. My code is:
It looks like you need to read up on the difference between the equals() method and the == operator. This has been discussed many times on this forum, so you can use the Search Tool to find previous threads on the topic.