Anvi Jain has Published 634 Articles

Sort ArrayList in Descending order using Comparator with Java Collections

Anvi Jain

Anvi Jain

Updated on 29-Jun-2020 06:42:21

4K+ Views

In order to sort ArrayList in Descending order using Comparator, we need to use the Collections.reverseOrder() method which returns a comparator which gives the reverse of the natural ordering on a collection of objects that implement the Comparable interface.Declaration − The java.util.Collections.reverseOrder() method is declared as follows -public static Comparator ... Read More

Create and demonstrate an immutable collection in Java

Anvi Jain

Anvi Jain

Updated on 29-Jun-2020 06:41:47

118 Views

In order to create and demonstrate an immutable collection in Java, we use the unmodifiableCollection() method. This method returns an unmodifiable and immutable view of the collection.Declaration − The java.util.Collections.unmodifiableCollection() method is declared as follows -public static Collection unmodifiableCollection(Collection

Determining If an Object Is an Array in Java

Anvi Jain

Anvi Jain

Updated on 29-Jun-2020 06:38:56

5K+ Views

In order to determine if an object is an Object is an array in Java, we use the isArray() and getClass() methods.The isArray() method checks whether the passed argument is an array. It returns a boolean value, either true or falseSyntax - The isArray() method has the following syntax -Array.isArray(obj)The getClass() ... Read More

Built-in objects in Python (builtins)

Anvi Jain

Anvi Jain

Updated on 27-Jun-2020 14:28:23

2K+ Views

The builtins module is automatically loaded every time Python interpreter starts, either as a top level execution environment or as interactive session. The Object class, which happens to be the base class for all Python objects, is defined in this module. All built-in data type classes such as numbers, string, ... Read More

Disassembler for Python bytecode

Anvi Jain

Anvi Jain

Updated on 27-Jun-2020 14:24:11

2K+ Views

The dis module in Python standard library provides various functions useful for analysis of Python bytecode by disassembling it into a human-readable form. This helps to perform optimizations. Bytecode is a version-specific implementation detail of the interpreter.dis() functionThe function dis() generates disassembled representation of any Python code source i.e. module, class, method, function, ... Read More

How to determine device type (iPhone, iPod Touch) with iPhone SDK?

Anvi Jain

Anvi Jain

Updated on 27-Jun-2020 13:47:59

311 Views

When working on iOS applications, we sometimes need to know the device on which application is installed, and provide custom features depending on the device in use. For example, we want to provide some features on iPhone X but not on iPhone 7. In this article, we’ll learn how to ... Read More

How can I develop for iPhone using a Windows development machine?

Anvi Jain

Anvi Jain

Updated on 27-Jun-2020 13:41:25

67 Views

Generally iOS applications can be developed on mac operating systems only, but recently with system development now applications for iOS can partially be developed on windows system too.To develop iOS or any other apps for apple platform, we need Xcode which is a native Apple software and can be installed ... Read More

Set up a simple delegate to communicate between two view controllers in iPhone

Anvi Jain

Anvi Jain

Updated on 27-Jun-2020 13:35:40

577 Views

In this article, you learn about delegates and creating delegates. First of all, What’s a delegate?Delegate is a simple term that refers to communication between objects. It is a simple way of connecting objects and communication between them.How does delegate work?A delegate is created with help of protocol. A protocol ... Read More

Remove characters in a range from a Java StringBuffer Object

Anvi Jain

Anvi Jain

Updated on 27-Jun-2020 13:20:44

1K+ Views

In order to remove characters in a specific range from a Java StringBuffer Object, we use the delete() method. The delete() method removes characters in a range from the sequence. The delete() method has two parameters , start and end. Characters are removed from start to end-1 index.Declaration − The ... Read More

CSS Chroma Filter

Anvi Jain

Anvi Jain

Updated on 27-Jun-2020 12:26:18

1K+ Views

Chroma Filter is used to making any particular color transparent and usually, it is used with images. You can use it with scrollbars also.ExampleImplementing the CSS Chroma Filter −Live Demo                         Text Example:       CSS Tutorials    

Previous 1 ... 3 4 5 6 7 ... 64 Next
Advertisements