Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

Synchronized block

Synchronized block: Synchronized block is mainly used when there is a sharing of resources and it is used to lock an object for any shared resource so that at a particular time only one object can use that resource. By using synchronized block only

String Passing in Python Class Methods - Output Error

My input string from a file is ANG 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 My required output should be 0.0 0.0 0.0 0.0 0.0 0.0 100 0.3 But Now my input is same as output .The last two zeroes under ANG string to be replaced as 100.0 and 0.3 respectively.Plea

Which one would be faster in Python I = I + 1 or I += 1 ?

I know these two expressions produce same results but I would like to know which one is faster and why. If I were to use them in two different loops with each loop iterating about hundred times, which loop will finish executing first and by what marg

Arrays in C

An array is a homogeneous collection of data. An array is a container that stores a fixed number of values of same type. The length of array is specified when we create an array. Once created, its legth is fixed. We can think of array as a structure

SQL Composite key

Sometime in a table we need two or more column to uniquely identify each row . Composite key is the combination of two or more Primary key . Primary key or candidate key come from the composite key . Syntax in SQL : create table table_name col_name1

Selecting a radiobutton on selecting a value from dropdownlist

The code below helps to get a particular radio button checked on selecting a particular value from the dropdownlist. <form> <div> <select id="selectvalue" onchange="Checkbox();"> <option value="1">Sele

XML Configuration based spring framework example

Hello guys Bellow example will help you to develop XML configuration based spring framework project,here I have develop example to display "Hello Bhagwan" message using beans. Please create project and follow bellow setps: Step :1 Add bellow jar

Chapter 2: Rotate a object about it’s axis using force in unity 4 /5

In unity physics plays a very impotant role .So to make the object rotate real and affected by force. We have to set the physics of unity 4 engine manually.If you are using unity 5 then things goes someway different. Unity 4 To achieve the affect

Reference and Pointers in C++

REFERENCE---  A reference variable is initialized first. A reference variable is defined to indicate a variable and that reference variable can't point to the another variable. References can not be NULL. e.g of reference variable is: &nbs

Count the occurence of an interger in a string

Description: Given a string of integers, count how many times that integer repeats itself, then return a string showing the count and the integer. Example: countMe('1123') (count_me in Ruby) Here 1 comes twice so <count><integer

1 26 949
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: