Reverse a string - Rosetta Code asdf fdsa [edit] Nial reverse 'asdf' =fdsa [edit] Nimrod import unicode proc reverse(s: var string) = for i in 0 .. s.high div 2: swap(s[i], s[s.high - i]) proc reversed(s: string): string = result = newString(s.len) for i,c in s: result[s.high - i] = c p
Reverse Number using Java | Java Examples - Java Program Sample Source Code This Java Reverse Number Example shows how to reverse a given number.
Bitwise and BitShift Operators in Java - AND, OR, XOR, Signed Left and Right shift Operator Examples Java provides several bitwise operator e.g. ~ for complement, & for AND bitwise operation, | for OR bitwise operation and ^ for bitwise XOR operation. All of these operator implements there respective operation and operates on bit level. By the way bitwis
How do I reverse an int array in Java? - Stack Overflow below is the complete program to run in your machine. public class ReverseArray { public static void main(String[] args) { int arr[] = new int[] { 10,20,30,50,70 }; System.out.println("reversing an array:"); for(int i = 0; i < arr.length / 2; i++){ int ..
String Concatenation using Java - Java samples - Programming tutorials on Java, C, C++, PHP, ASP In general, Java does not allow operators to be applied to String objects. The one exception to this rule is the + operator, which concatenates two strings, producing a String object as the result. This allows you to chain together a series of + operation
Java vs Perl - WikiVS is able to map any object to any other object based upon hash values produced by the Object#hashValue() function. Java also provides many hash based data structures not provided by perl. These include HashTable (a synchronized hashMap) and HashSet. [edit]
Can we reverse the string in cobol ? See the following problem : 77 NAME PIC X(10) VALUE 'MANOJ', 77 COBOL - Can we reverse the string in cobol ? See the following problem : 77 NAME PIC X(10) VALUE MANOJ, 77 SRNAME PIC X(10).I want JONAM in SRNAME. . 10 Answers ...
BitSet example in Java - Java samples - Programming tutorials on Java, C, C++, PHP, ASP A BitSet class creates a special type of array that holds bit values. This array can increase in size as needed. This makes it similar to a vector of bits. The BitSet constructors are ...
XOR Encryption - Cprogramming.com Exclusive-OR encryption works by using the boolean algebra function exclusive-OR (XOR). XOR is a binary operator (meaning that it takes two arguments - similar to the addition sign, for example). By its name, exclusive-OR, it is easy to infer (correctly,
AWT Button | Java Examples - Java Program Sample Source Code Change AWT Button Font Example Change Button Background Color Example Change Button Foreground Color Example Create AWT Button Example Determine If The Button Is Enabled Example Determine If The Button Is Visible Example Disable Button Example