What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-30 08:56:05
dataweave 2 number to string
%dw 2.0 output application/json --- { noRounding: 123.456 as String, roundDown: 123.456 as String {format: "0.00", roundMode:"DOWN"}, roundHalfDown: 123.455 as String {format: "0.00", roundMode:"HALF_DOWN&quo... Add solution -
Javascript 2021-09-29 13:30:06
strict equality operator
// If you try to test if the number 5 //is equal to the string “5” the result is true. var a = 5; var b = "5"; if ( a == b) --> true //That’s because JavaScript figures out the value //of this string is five, and five i... Add solution -
C 2021-09-27 21:58:02
coin row problem in linear time
/* Assumptions : 1. The numbers are integers and given as strings. 2. The array of numbers is basically a 2D string array where each elemet (number) is represented as a string */ char* coin_row_problem(char **arr, int n) { char* prev; if... Add solution -
Javascript 2021-09-27 01:20:02
converst strig in number in js
const numberInString = "20"; console.log(typeof(numberInString)) // typeof is string this is string in double quote " " const numInNum = parseInt(numberInString) // now numberInStrings variable converted in an Integer due to parseInt ... Add solution -
Java 2021-09-26 20:21:04
String indexOf(String str int fromIndex) method in java
import java.util.*; public class StringIndexOfMethodExample { public static void main(String[] args) { String strInput = new String("hello world core java"); String strSub = new String("core"); System.out.print(... Add solution