First Thank you in Advance just for having a place for programmers to talk to each other..
As I said in my title, I am new to java. 3rd week in class..
I have an issue with my if statement project.. Its a long way from being done but anyway when i put in Admin it always goes to the else statement.. So I understand this is a Logic error..( Learned something )
Here is my code if you could point a finger at where I need to focus my attention.. It would be greatly appreciated .. Thank you so much..import javax.swing.JOptionPane; class Name{ public static void main(String[] args){ String name = JOptionPane.showInputDialog( null, "Please enter Name"); if(name == ("Admin")) { JOptionPane.showMessageDialog(null, name + " welcome " ); } else { JOptionPane.showMessageDialog(null, name + " Is not Correct! Goodbye! " ); } // End if } //end main() } //end class