This file contains hidden or 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
class StoreVO { | |
private Integer activationStatus; | |
public Integer getActivationStatus() { | |
return activationStatus; | |
} | |
public void setActivationStatus(Integer activationStatus) { | |
this.activationStatus = activationStatus; | |
} |
This file contains hidden or 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 Test { | |
public static void main(String[] args) { | |
String filename = "abc"; | |
for (int i = 0; i < filename.length(); i++) { | |
System.out.printf("%04x%n", (int) filename.charAt(i)); | |
} | |
} | |
} |
This file contains hidden or 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
using System; | |
using System.Linq; | |
using NodaTime; | |
using NodaTime.Extensions; | |
public class Program | |
{ | |
public static void Main() | |
{ | |
var latest = (from zone in DateTimeZoneProviders.Tzdb.GetAllZones() |
This file contains hidden or 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
using System; | |
using System.Linq; | |
using NodaTime; | |
using NodaTime.Extensions; | |
public class Program | |
{ | |
public static void Main() | |
{ | |
var latest = (from zone in DateTimeZoneProviders.Tzdb.GetAllZones() |
This file contains hidden or 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
using System; | |
using Newtonsoft.Json; | |
public class Item | |
{ | |
public string Name { get; set; } | |
public DateTime Date { get; set; } | |
} |
This file contains hidden or 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
using System; | |
using System.Windows.Forms; | |
class Program | |
{ | |
static void Main() | |
{ | |
var picker = new DateTimePicker(); | |
picker.Text = "foo"; | |
} |
This file contains hidden or 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
using System; | |
class Test | |
{ | |
static void Main() | |
{ | |
try | |
{ | |
Console.WriteLine("In try block"); | |
throw new Exception(); |
This file contains hidden or 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
```java | |
Put your code here | |
``` |
This file contains hidden or 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
class Test | |
{ | |
// Implementations don't matter. | |
static int AddOrSubtract(int a, int b, bool add = true) => 0; | |
static int AddOrSubtract(int a, int b) => 0; | |
} |
This file contains hidden or 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
class Main { | |
public static void main(String[] args) { | |
try { | |
testMe(); | |
} catch (Exception e) { | |
System.out.println("Caught " + e.getMessage() + " in main"); | |
} | |
} | |
static void testMe() throws Exception { |