George John has Published 1167 Articles

How to create ripple animation in my Android App?

George John

George John

Updated on 30-Jul-2019 22:30:25

455 Views

Before getting into the code, we should know what is ripple animation in android. Ripple animation is just like wave momentum. In android it is appears on view like Textview, Button, etc using background attribute.This example demonstrate about how to integrate ripple animation to view.Step 1 − Create a new ... Read More

Can somebody explain the HTTP headers in simpler terms in JSP context?

George John

George John

Updated on 30-Jul-2019 22:30:25

120 Views

When a Web server responds to an HTTP request, the response typically consists of a status line, some response headers, a blank line, and the document. A typical response looks like this −HTTP/1.1 200 OK Content-Type: text/html Header2: ... ... HeaderN: ... (Blank Line) ... Read More

Pre & post increment operator behavior in C, C++, Java, and C#

George John

George John

Updated on 30-Jul-2019 22:30:25

3K+ Views

The Pre increment and post increment both operators are used as increment operations. The pre increment operator is used to increment the value of some variable before using it in an expression. In the pre increment the value is incremented at first, then used inside the expression.if the expression is ... Read More

Write a MongoDB query to get nested value?

George John

George John

Updated on 30-Jul-2019 22:30:25

133 Views

You can use dot notation to get nested value. Let us first create a collection with documents> db.nestedQueryDemo.insertOne( ...    { ... ...       "EmployeeName" : "John", ...       "EmployeeDetails" : ...       { ... ...          "_id":"EMP-101", ...     ... Read More

The indexOf() method of CopyOnWriteArrayList class in Java

George John

George John

Updated on 30-Jul-2019 22:30:25

242 Views

The indexOf() method of the CopyOnWriteArrayList class is used to get the index of the first occurrence of an element. The method has two two forms. Let us see them one by oneindexOf(Object o) methodThe indexOf(Object o) is used to get the index of the first occurrence of an element.The ... Read More

What is the session Object in JSP?

George John

George John

Updated on 30-Jul-2019 22:30:25

3K+ Views

The session object is used to track a client session between client requests.JSP makes use of the servlet provided HttpSession Interface. This interface provides a way to identify a user across.a one-page request orvisit to a website orstore information about that userBy default, JSPs have session tracking enabled and a ... Read More

In Android how to register a custom Intent filter to a broadcast receiver?

George John

George John

Updated on 30-Jul-2019 22:30:25

2K+ Views

Before getting into the example, we should know what is intent filter in android. An intent filter is an instance of the IntentFilter class. Intent filters are helpful while using implicit intents, It is not going to handle in java code, we have to set it up in AndroidManifest.xml. Android ... Read More

Type Casting operators in C++

George John

George John

Updated on 30-Jul-2019 22:30:25

389 Views

A cast is a special operator that forces one data type to be converted into another. As an operator, a cast is unary and has the same precedence as any other unary operator.The most general cast supported by most of the C++ compilers is as follows(type) expressionWhere type is the ... Read More

The isEmpty() method of AbstractSequentialList in Java

George John

George John

Updated on 30-Jul-2019 22:30:25

68 Views

The isEmpty() method of the AbstractSequentialList class is used to check whether the list is empty or not. If it is empty, then TRUE is returned, else FALSE.The syntax is as follows.public boolean isEmpty()To work with the AbstractSequentialList class in Java, you need to import the following package.import java.util.AbstractSequentialList;The following ... Read More

Can we store CSS color values in MySQL?

George John

George John

Updated on 30-Jul-2019 22:30:25

725 Views

Yes, we can. In order to store CSS color value, you can use CHAR(6) without # symbol for hexadecimal. Let us see an example and create a tablemysql> create table storeCSSColorDemo -> ( -> CSSValue char(6) -> ); Query OK, 0 ... Read More

Advertisements