React – SetState
In React, setState is not guarantee that every time you’d get back the previous state. Take a look below example. Not good Better code
In React, setState is not guarantee that every time you’d get back the previous state. Take a look below example. Not good Better code
To format Java 8 LocalDate, LocalTime or LocalDateTime. We can use DateTimeFormatter. Month Output Day Output Year Output Day Of Month Quarter of Year AM/PM LocalizedDate, LocalizedTime & LocalizeDateTime – FormatStyle.SHORT LocalizedDate, LocalizedTime & LocalizeDateTime – FormatStyle.MEDIUM LocalizedDate, LocalizedTime &
Suppose you’re assign a job to run a program started from 1st of January 2019 until end of April 2019. You’re require to run through every week. Java Period The following job will run from first day of the defined
Convert List to Array List<String> list = new ArrayList<>();list.add(“man”);list.add(“women”);String[] arr = list.toArray(new String[list.size()]);System.out.println(Arrays.toString(arr)); Convert Array to List String[] arr = {“car”,”bike”,”van”};List<String> list = Arrays.asList(arr); // return fixed size listSystem.out.println(Arrays.toString(arr));System.out.println(list);System.out.println(list.size()); // 3System.out.println(arr.length); // 3 Replace element list.set(0, “lori”); System.out.println(Arrays.toString(arr)); System.out.println(list); Add
To do e-filling on PT, follow the below instruction to check the form availability. Check Availability Go to http://www.hasil.gov.my/ Select Form > Return Form (RF) Filing Programme For The Year 20XX Check for the columns Availability of e-Filing System for:
Hexadecimal system is 16 based, digit can be used is from range 0 – 9 A – F. Prefix – 0x Hexadecimal literal have a prefix 0x. Example: public static void main(String[] args) { int first = 0xA; #10 int second
Octal system is 8 based, digit can be used is from range 0 – 7, no digit can more than 7. Digit right after 7 is 10 or digit right after 17 is 20 etc. Prefix 0 you can define octal
This article is talking about the flask micro service framework. Same like others web framework, flask do provide the session object to each individual request and this implementation is on top of cookies for you to sign the cookies cryptophgraphically.
If you ever encounter the message like, “You need to use a different version code for your APK or Android App Bundle because you already have one with version code 1.” Below solution may help you.
The following setup show you how to run genymotion for android apps development purpose. Personally i feel that android studio is too big and slow for run testing.