Karthikeya Boyini has Published 2383 Articles

How to remove duplications from arraylist for listview in Android?

karthikeya Boyini

karthikeya Boyini

Updated on 29-Jun-2020 15:55:23

105 Views

This example demonstrate about How to remove duplications from arraylist for listview in AndroidStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.         ... Read More

How to insert element to arraylist for listview in Android?

karthikeya Boyini

karthikeya Boyini

Updated on 29-Jun-2020 15:53:41

2K+ Views

This example demonstrate about How to insert element to arraylist for listview in AndroidStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.         ... Read More

How to delete element from arraylist for listview in Android?

karthikeya Boyini

karthikeya Boyini

Updated on 29-Jun-2020 15:51:47

2K+ Views

This example demonstrate about How to delete element from arraylist for listview in AndroidStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.         ... Read More

How to delete all elements from arraylist for listview in Android?

karthikeya Boyini

karthikeya Boyini

Updated on 29-Jun-2020 15:48:40

1K+ Views

This example demonstrate about How to delete all elements from arraylist for listview in AndroidStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.       ... Read More

Rotate Out Animation Effect with CSS

karthikeya Boyini

karthikeya Boyini

Updated on 29-Jun-2020 07:20:06

104 Views

To create rotate out animation effect with CSS, you can try to run the following code −ExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat;         ... Read More

CSS volume Property

karthikeya Boyini

karthikeya Boyini

Updated on 29-Jun-2020 07:12:20

130 Views

Volume refers to the median volume of the voice. It can have following values −numbers − Any number between '0' and '100'. '0' represents the minimum audible volume level and 100 correspond to the maximum comfortable level.percentage − These values are calculated relative to the inherited value, and are then ... Read More

Java Program to retrieve the current bits in a byte array in two’s-complement form

karthikeya Boyini

karthikeya Boyini

Updated on 29-Jun-2020 05:49:20

227 Views

Use the toByteArray() method to return a byte array containing the two's-complement representation of this BigInteger. The byte array will be in big-endian byte-order: the most significant byte is in the zeroth element.The following is an example to retrieve the current bits in a byte array in two’s-complement form.Example Live Demoimport ... Read More

Parse decimal string to create BigInteger in Java

karthikeya Boyini

karthikeya Boyini

Updated on 29-Jun-2020 05:47:22

236 Views

To parse the decimal string to create BigInteger, just set the decimal string in the BigInteger.Here is our BigInteger.BigInteger one; String decStr = "687879"; one = new BigInteger(decStr);Let us see another example −Example Live Demoimport java.math.*; public class Demo {    public static void main(String[] args) {       BigInteger ... Read More

Parsing and Formatting a Big Integer into Octal in Java

karthikeya Boyini

karthikeya Boyini

Updated on 29-Jun-2020 05:44:57

197 Views

Firstly, take two BigInteger objects and set values.BigInteger one, two; one = new BigInteger("99");Now, parse BigInteger object “two” into Octal.two = new BigInteger("1100", 8); String str = two.toString(8);Above, we have used the following constructor. Here, radix is set as 8 for Octal. for both BigInteger constructor and toString() method.BigInteger(String val, ... Read More

Parsing and Formatting a Byte Array into Octal in Java

karthikeya Boyini

karthikeya Boyini

Updated on 29-Jun-2020 05:43:13

457 Views

Set a BigInteger object.BigInteger one;Now, create a ByteArray.byte byteArr[] = new byte[] { 0x1, 0x00, 0x00 }; one = new BigInteger(byteArr);For Octal, we have used 8 as the toString() method parameter.String strResult = one.toString(8);The following is an example −Example Live Demoimport java.math.*; public class Demo {    public static void main(String[] ... Read More

Advertisements