What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-10 16:46:02
find minimum number in array java
// Find minimum and maximum values in a java array public class MaxMinValueInArray { public static void main(String[] args) { int[] arrNumber = new int[]{50, 150, 250, 500, 160, 530}; int maximum = maxNumber(arrNumber); System.out... Add solution -
Java 2021-09-02 10:22:02
Java program to swap two numbers using function
import java.util.Scanner; // java swap function public class SwapTwoNumberDemo { int numOne, numTwo; public void swapNum(SwapTwoNumberDemo stn) { int temp; temp = stn.numOne; stn.numOne = stn.numTwo; stn.numTwo = temp; ... Add solution -
Kotlin 2021-08-30 04:15:02
get timestamp kotlin
Kotlin doesn't have any time handling classes of its own, so you just use Java's java.time. For an ISO-8601 timestamp (which is the preferred format): DateTimeFormatter.ISO_INSTANT.format(Instant.now()) That will return 2018-04-16T17:00:08.746Z. For your... Add solution