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
from random import randint | |
import pyodbc | |
from datetime import datetime | |
import random | |
cnxn = pyodbc.connect('DRIVER={SQL Server};SERVER=xxxxx;DATABASE=POC_HOUSEKEEPING;UID=xxxxx;PWD=xxxxxx') | |
cursor = cnxn.cursor() | |
for num in range(0,1000100): | |
try: |
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
private static void runCase1() { | |
// Case1. From Pratical Java | |
int j = 10; | |
Point point = new Point(4, 4); | |
logger.info("Before Modify Point {}, j ={}", point, j); | |
setPointLocation(point, j); |
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
private static void runCase1() { | |
// Case1. From Pratical Java | |
int j = 10; | |
Point point = new Point(4, 4); | |
logger.info("Before Modify Point {}, j ={}", point, j); | |
setPointLocation(point, j); |
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
package practical.praxis1; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
public class PassByValue { | |
private static Logger logger = LoggerFactory.getLogger(PassByValue.class); | |
public static void main(String[] args) { |
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
package practical.praxis1; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
public class PassByValue { | |
private static Logger logger = LoggerFactory.getLogger(PassByValue.class); | |
public static void main(String[] args) { |
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
private static void runCase1() { | |
int j = 10; | |
Point point = new Point(4, 4); | |
logger.info("Before Modify Point {}, j ={}", point, j); | |
setPointLocation(point, j); |
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
private static void runCase2() { | |
int j = 10; | |
Point point = new Point(4, 4); | |
logger.info("Before Modify Point {}, j ={}", point, j); | |
setPointWithAssign(point, j); |
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 FinalInConstructor { | |
private final int LINE_NUM; | |
public FinalInConstructor() { | |
LINE_NUM = 10; | |
} | |
} |
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
private static final List<String> listOfString = new ArrayList<String>(); | |
public void addSomeToList() { | |
listOfString.add("Hello"); | |
} |
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
# For Using Gen Teda i18N | |
property_list = [1, 2, 3, 9, 10, 11] | |
i18n_key_value = {"PMS_PRICE_SIMU_MASTER.TYPE":"Simulation Type"} | |
template = """ | |
MERGE INTO "DOTJ_PROPERTIES_CONTENT" proper | |
USING dual ON ("CONTENT_KEY" = '{CONTENT_KEY}' and "PROPERTIES_ID" = {prop_id}) | |
WHEN MATCHED THEN |
OlderNewer