George John has Published 1167 Articles

How to specify where to send the form-data when a form is submitted in HTML?

George John

George John

Updated on 02-Mar-2020 12:39:42

471 Views

Use the action attribute to add the file, where you want to reach after clicking Submit button. You can also add an email to send the data to that email-id.ExampleYou can try to run the following code to set where to send the form-data when a form is submitted in HTML ... Read More

How to compare two strings without case sensitive in Java

George John

George John

Updated on 26-Feb-2020 07:04:22

2K+ Views

The equalsIgnoreCase() method compares this string to the specified object. The result is true if and only if the argument is not null and is a String object that represents the same sequence of characters as this object.ExampleLive Demopublic class Sample { public static void main(String args[]) { String Str1 ... Read More

What is the purpose of toString() method? Or What does the toString() method do in java?

George John

George John

Updated on 19-Feb-2020 12:49:21

159 Views

The toString() method returns the current object in String format.ExampleLive Demopublic class Test { public static void main(String args[]) { Test obj = new Test(); System.out.println(obj.toString()); System.out.println("Hello"); } }OutputTest@2a139a55 Hello

Common undefined behaviours in C++ programming

George John

George John

Updated on 12-Feb-2020 05:15:32

59 Views

The following are most common causes of undefined behaviour in C++ programming. Note that all of these are specified in the standard to lead to undefined behaviour and should be avaoided at all costs when writing programs. Signed integer overflowDereferencing a NULL pointer, a pointer returned by a "new" allocation of ... Read More

What are Aggregates and PODs in C++?

George John

George John

Updated on 11-Feb-2020 12:49:57

510 Views

POD is an acronym in C++ that means plain old data. It is a class/struct that ONLY has member variables and no methods, constructors, destructors, virtual functions, etc. For example, Example#include using namespace std; // POD struct MyStruct {    int key;    string data; }; int main() { ... Read More

Difference between const int*, const int * const, and int const * in C/C++?

George John

George John

Updated on 11-Feb-2020 11:04:26

3K+ Views

The above symbols mean the following −int* - Pointer to int. This one is pretty obvious. int const * - Pointer to const int. int * const - Const pointer to int int const * const - Const pointer to const intAlso note that −const int * And int const ... Read More

Set marker inside of the box containing the bullet points with CSS

George John

George John

Updated on 03-Feb-2020 07:31:33

446 Views

To set marker inside of the box containing the bullet points, use the list-style-position property with the value inside. The inside value means if the text goes onto a second line, the text will wrap underneath the marker. It will also appear indented to where the text would have started if the list ... Read More

Usage of CSS list-style-type property

George John

George John

Updated on 03-Feb-2020 07:02:38

65 Views

The list-style-type allows you to control the shape or appearance of the marker. You can try to run the following code to implement list-style-type propertyExample                            India          Australia          

How to set the CSS margin properties in one declaration?

George John

George John

Updated on 03-Feb-2020 06:38:25

218 Views

The margin property defines the space around an HTML element. It is possible to use negative values to overlap content. It specifies a shorthand property for setting the margin properties in one declaration.ExampleYou can try to run the following code to set margins                 ... Read More

Set the right margin of an element with CSS

George John

George John

Updated on 03-Feb-2020 06:23:19

136 Views

The margin-right property is used to set the right margin of an element. It can have a value in length, % or auto. You can try to run the following code to set the right marginExample                                     Cricket crazy nation India!                                 Cricket crazy nation Australia!                

Advertisements