
Search In
In Ruby it is possible to send a Hash as an argument to a method.
Suppose we have a method named conversion_method which has 4 default parameters(a,b,c,d). ex:-
2.1.5 :086 > def conversion_method(a:10, b:20, c:30, d:40)
2.1.5 :087?> puts
Hello friends,
Most of time we need to create 2-D array in javascript but javascript does not provide direct syntax of multidimensional array . But we can create custom two-dimensional array in javascript.
For Example :
var myarray=new Array(3)
for
There are methods to add elements to the array using push method and concat method.
The array push method adds element at the end of an array and returns its new length.
*Syntax :- array.push(item1, item2, ..., itemX)
Below is the example code :
#include<string.h>
int main() {
int number1, number2;
char str[10];
printf("\nEnter a Number:::");
scanf("%d", &number1);
sprintf(str, "%d", number1);//step 1
strrev(str);//step 2
number2 = atoi(str);//step 3
pri
In java we can define more than one method inside one class(same class), whose names are same until their parameters or signature are different. This process or method of having more than one method within same class with different parameters or sign
Sometimes we need to generate a unique number for an emailId, for example when a user register then we need to generate a number by using that user can verify his EmailId. For this we can use SHA1 encoding method.
Example - In the below method I'
I am posting this blog because I was facing issue to show the total common counts in 3rd column from two columns. This is following table which contain these records:
|==========title=================|======title================|
|...Cat Dog.......
If we want to calculate the distance from the array which contains the coordinates i.e Latitude and Longitude then use the following code-
-(void) getDistanceFromArray {
CLLocationDistance totalKilometers = 0;
for (int i = 0; i < (self.arra
There are two ways of event propagation in HTML DOM, when an event occur in an element with an element:
1. Event bubbling
2. Event capturing
1. Event bubbling : There are many times when we want to handle two or more event handlers at different leve
Hello Readers!
We web designer can give new look and feel to any content of the div, We have numerous style, effects and animation including keframes which will result to get a graceful ambience to the content, Here in this blog i used same effects w
