Problem Get the value of an element such as a span or a text field using jQuery and increment its value. Suppose there is a text field with id textBox which has a value 5, then in order to get the value of this text box and increment it, following code seems correct
Scenario Convert an array to a List using asList method of java.util.Arrays class. Try to add an element to the list returned(by calling add method) or remove an element from the list(using remove method) and you will get something like
Many times arises a situation where one needs to convert an ArrayList to array. One of the most common scenarios is when executing a method from a third party library which accepts an array while the code calling this method has an ArrayList. There are a couple of methods to do this, one is a
Problem Suppose there is a table in an Oracle database.There comes a requirement that a column which has a NUMBER datatype should now be changed to VARCHAR2. If the table is empty, then a simple ALTER query will solve the problem. But if the table has some crucial data which cannot be deleted and you […]
What is an enum ? An enum is a kind of data type in java which can contain a fixed set of values. These values are constants. The enum can have any one value out of these fixed set of values. Enum Syntax An enum is created using keyword enum followed by a user defined […]
What is abstract class? An abstract class is a just like a normal class with a restriction that it cannot be instantiated which means that you cannot create its object. An abstract class is not complete and its implementation is completed by sub-classes. Note that
Renaming means changing the name of table after it has been created. Since this is a basic operation for a database, all the database have a standard syntax for renaming tables but MySQL provides two variants of syntax to rename tables.
Many times developers encounter this scenario where they have an array of string values and another single string value and they may need to perform any of the following tasks :