This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Main { | |
public static void main(String[] args) { | |
Integer a = new Integer(10); | |
Integer b = new Integer(10); | |
if (a.equals(b)) { | |
System.out.println("true"); | |
} else { | |
System.out.println("false"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DoInBackground(. . . ) { | |
//Doing some work | |
if (isCancelled()) { | |
// we are cancelled, no need to do any work now | |
. . . | |
// Did we override implement onCancelled() or onCancelled(Object)? | |
} | |
for (CurrentWork : ListOfWorks) { | |
if (isCancelled()) { | |
// we are cancelled, no need to do any work now |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Using declarations | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.ComponentModel.DataAnnotations; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows; | |
using System.Windows.Input; |
OlderNewer