|
Hi
So, I'm almost done coding a program which verifies if emails are valid/invalid (its for an intro java course). There's only one line left which is giving me trouble, which is:
if(((s.charAt(0))) == (".,+/\\!@#$%^&*+"))
the error elicits the following message:
1 error found: File: /home/ben/Documents/compsci_121/EMail.java [line: 17] Error: /home/ben/Documents/compsci_121/EMail.java:17: incomparable types: char and java.lang.String
Can anyone help me? I don't know enough about OOP to know what is wrong. Thanks. |