What do you want to save?
Add Code snippet
New code examples
-
Java 2022-02-27 11:05:21
java rename file extension
// java rename file extension import java.io.File; import java.io.IOException; import java.util.regex.Matcher; import java.util.regex.Pattern; public class RenameFileExtension { public static boolean renameExtension(String strSource, String strNewExte... Add solution -
Java 2022-02-27 01:30:07
assignment operator between classes java
DayWeek dw = new DayWeek(5); DayWeek dw2= null; boolean b; b = dw==dw2; // b = false dw2 = dw; // dw2 and dw are equal b = dw==dw2; // b = true // references to different memory areas DayWeek dw3 = new DayWeek(3); DayWeek dw4 = new DayWeek(3); if (dw3=... Add solution -
VBA 2022-02-26 21:40:01
excel vba test if particular bits set in long
'Fast VBA function to test if specific bits are set 'within a 32-bit Long integer. If ALL specified bits are set then 'this function returns True. If ANY of the specified bits are 'not set then this function returns False. 'Bits are numbered from 0 to ... Add solution -
Javascript 2022-02-26 17:05:01
5.3.1.3. Logical NOT¶
/*The logical NOT operator, !, takes only a single operand and reverses its boolean value.*/ console.log(! true); console.log(! false); //false //true console.log( !(5 > 7) ); console.log( !('dog' === 'cat') ); //true //false /*The operator ! (s... Add solution -
VBA 2022-02-25 05:20:02
excel vba multiple string search with InStr function
'VBA function to check if ANY of a list of substrings is contained 'within a string: Function AnyIn(s$, ParamArray checks()) As Boolean Dim e For Each e In checks If InStrB(s, e) Then AnyIn = True: Exit Function Next End Function '... Add solution -
VBA 2022-02-24 21:25:02
excel vba set border around range
'VBA routine to set the border AROUND or THROUGH a range: Sub SetRangeBorders(r As Range, Optional edges As Boolean = 1, Optional stl = 1, Optional clr = 0, Optional wgt = 2) Dim e If edges Then For Each e In Array(xlEdgeLeft, 8, 9, 10) ... Add solution -
Java 2022-02-22 20:10:19
Multiply two numbers without using arithmetic operators in java
import java.util.Scanner; public class MultiplyWithoutArithmeticOperators { static int multiplyNumber(int num1, int num2) { int output = 0; boolean boolNegative = (num1 < 0 && num2 >= 0) || (num2 < 0 && num1 >... Add solution -
Other 2022-02-20 04:00:34
Assertions in selenium
ASSERTIONS: Assertions are coming from TestNG Assertions allows us to do our verification between actual and expected results *Assert.assertEquals(actual, expected); assertEquals : This method expected two arguments to be passed: actual, expected. It c... Add solution