Ankith Reddy has Published 1070 Articles

Reading and Writing CSV File using Python

Ankith Reddy

Ankith Reddy

Updated on 25-Jun-2020 14:14:39

2K+ Views

CSV (stands for comma separated values) format is a commonly used data format used by spreadsheets. The csv module in Python’s standard library presents classes and methods to perform read/write operations on CSV files.writer()This function in csv module returns a writer object that converts data into a delimited string and ... Read More

strictfp Keyword in Java programming

Ankith Reddy

Ankith Reddy

Updated on 25-Jun-2020 14:12:11

184 Views

strictfp is used to ensure that floating points operations give the same result on any platform. As floating points precision may vary from one platform to another. strictfp keyword ensures the consistency across the platforms.strictfp can be applied to class, method or on interfaces but cannot be applied to abstract ... Read More

Perform Animation on CSS letter-spacing property

Ankith Reddy

Ankith Reddy

Updated on 25-Jun-2020 14:10:23

114 Views

To implement animation on the letter-spacing property with CSS, you can try to run the following codeExampleLive Demo                    p {             letter-spacing: 3px;             animation: mymove 3s infinite;          }          @keyframes mymove {             70% {                letter-spacing: 20px;             }          }                     I am flying!    

POJI in Java

Ankith Reddy

Ankith Reddy

Updated on 25-Jun-2020 14:07:52

353 Views

POJI is an acronym for Plain Old Java Interface which corresponds to a Java standard interface which means that these interfaces are in the context of providing services in JEE. For example, OSGI service is offered through POJI in JEEIn other terms we can say that POJI is an ordinary ... Read More

Get the list of all the declared methods in Java

Ankith Reddy

Ankith Reddy

Updated on 25-Jun-2020 14:07:31

839 Views

The list of all the declared methods can be obtained using the java.lang.Class.getDeclaredMethods() method. This method returns an array that contains all the Method objects with public, private, protected and default access. However, the inherited methods are not included.Also, the getDeclaredMethods() method returns a zero-length array if the class or ... Read More

Access to the Password Database in Python

Ankith Reddy

Ankith Reddy

Updated on 25-Jun-2020 14:04:13

450 Views

To access the password database, we should use the pwd module. Using this module, we can access users account and password database. The password database entries are like tuple like object.To use the pwd module, we should import it using.import pwdThe attributes of the password database are −IndexAttribute & Description0pw_nameThe ... Read More

Java Program to implement Binary Search on float array

Ankith Reddy

Ankith Reddy

Updated on 25-Jun-2020 14:03:31

198 Views

Binary search on a float array can be implemented by using the method java.util.Arrays.binarySearch(). This method returns the index of the required float element if it is available in the array, otherwise it returns (-(insertion point) - 1) where the insertion point is the position at which the element would ... Read More

Check for the availability of a package in Java

Ankith Reddy

Ankith Reddy

Updated on 25-Jun-2020 13:59:35

527 Views

The availability can be checked using the method java.lang.Class.forName(). The class object associated with the class with the given string name can be returned using the method java.lang.Class.forName(String name, boolean initialize, ClassLoader loader), using the class loader that is used to load the class.A program that demonstrates this is given ... Read More

Python Exception Base Classes

Ankith Reddy

Ankith Reddy

Updated on 25-Jun-2020 13:51:15

5K+ Views

Like other high-level languages, there are some exceptions in python also. When a problem occurs, it raises an exception. There are different kind of exceptions like ZeroDivisionError, AssertionError etc. All exception classes are derived from the BaseException class.The code can run built in exceptions, or we can also raise these ... Read More

Get the unqualified name of a class in Java

Ankith Reddy

Ankith Reddy

Updated on 25-Jun-2020 13:49:24

437 Views

A qualified class name in Java contains the package that the class originated from. In contrast to this, the unqualified class name contains only the class name without any package information. A program that gets the unqualified name of a class is given as follows:Example Live Demopublic class Demo {    public ... Read More

Advertisements