Thread: Java
View Single Post
  #4 (permalink)  
Old 07-29-2007, 12:39 PM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
PT Admin
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,119
iTrader: (0)
HelloWorld is a jewel in the roughHelloWorld is a jewel in the roughHelloWorld is a jewel in the rough
no, that means that if this.running is NOT EQUAL to running (assuming that they're not object. Meaning that they're just a primitive type of variables, then you may use that comparison

PHP Code:
public void test() {
     
int one 1;
     
int two 2;
     
int test 1;
     if (
one != two) {
          
System.out.println("test"); 
          
// will be executed since they are NOT equal
     
}
     if (
one == two) {
          
System.out.println("test2");
          
// won't be executed cuz they are NOT equal
     
}
     if (
one == test) {
          
System.out.println("test3");
          
// will be executed because they are equal
     
}

would that helps you

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote