karthikeya Boyini

karthikeya Boyini

1,421 Articles Published

Articles by karthikeya Boyini

Page 6 of 143

HTML DOM Input Month min Property

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 150 Views

The HTML DOM input month min property returns and modify the value of the min attribute of the input field of type=”month” in an HTML document.SyntaxFollowing is the syntax −1. Returning minobject.min2. Modifying minobject.min = “YYYY-MM”Here, YYYY represent year and MM represent month like “2019-02”ExampleLet us see an example of HTML DOM input month min property −    html{       height:100%;    }    body{       text-align:center;       color:#fff;       background: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%)       center/cover no-repeat;       height:100%;    }    p{ ...

Read More

LinkedBlockingDeque in Java

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 397 Views

The LinkedBlockingDeque Class in Java has a blockingdeque that is optionally bounded and based on linked nodes. This class implements the Collection interface as well as the AbstractQueue class. It is a part of the Java Collection Framework.A program that demonstrates this is given as follows −Exampleimport java.util.concurrent.LinkedBlockingDeque; public class Demo {    public static void main(String[] args) {       LinkedBlockingDeque lbDeque = new LinkedBlockingDeque();       lbDeque.add("James");       lbDeque.add("May");       lbDeque.add("John");       lbDeque.add("Sara");       lbDeque.add("Anne");       System.out.println("Size of LinkedBlockingDeque is: " + lbDeque.size());       ...

Read More

How to convert Float array list to float array in Java?

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 3K+ Views

Let us first create a float array list −ArrayList < Float > arrList = new ArrayList < Float > (); arrList.add(5.2 f); arrList.add(10.3 f); arrList.add(15.3 f); arrList.add(20.4 f);Now, convert the float array list to float array. At first, we have set the same size to float array i.e. the same number of elements. After that, we have assigned each value −final float[] arr = new float[arrList.size()]; int index = 0; for (final Float value: arrList) {    arr[index++] = value; }Exampleimport java.util.ArrayList; public class Demo {    public static void main(String[] args) {       ArrayListarrList = new ArrayList(); ...

Read More

SecureRandom getInstance() method in Java

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 426 Views

A SecureRandom object can be obtained using the getInstance() method in class java.security.SecureRandom. This SecureRandom object is useful in implementing the Random Number Generator (RNG) algorithm that is specified.The getInstance() method requires a single parameter i.e. the Random Number Generator (RNG) algorithm and it returns the SecureRandom object.A program that demonstrates this is given as follows −Exampleimport java.security.*; import java.util.*; public class Demo {    public static void main(String[] argv) {       try {          SecureRandom sRandom = SecureRandom.getInstance("SHA1PRNG");          String s = "Apple";          byte[] arrB = s.getBytes(); ...

Read More

HTML DOM Input Month type Property

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 190 Views

The HTML DOM input month type property returns the value of the type attribute of input month field in an HTML document.SyntaxFollowing is the syntax −object.typeExampleLet us see an example of HTML DOM input month type property −    html{       height:100%;    }    body{       text-align:center;       color:#fff;       background: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%)       center/cover no-repeat;       height:100%;    }    p{       font-weight:700;       font-size:1.1rem;    }    input{       display:block; ...

Read More

Check if a string starts with given word in PHP

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 792 Views

Create a function to check whether a string begins with the specified string or not. The function should return TRUE on success or FALSE on failure.The following is the syntax −begnWith(str, begnStr)Consider the following parameters in it to check −str − The string to be testedbegnStr − The text to be searched in the beginning of the specified string.ExampleThe following is an example −

Read More

HTML DOM Input Month value Property

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 169 Views

The HTML DOM input month value property returns and modify the value of the value attribute of an input month field.SyntaxFollowing is the syntax −Returning valueobject.value2. Modifying valueobject.value = true | falseExampleLet us see an example of HTML DOM input month value property−    html{       height:100%;    }    body{       text-align:center;       color:#fff;       background: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%)       center/cover no-repeat;       height:100%;    }    p{       font-weight:700;       font-size:1.1rem;    }   ...

Read More

SecureRandom getAlgorithm() method in Java

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 186 Views

The name of the algorithm for the SecureRandom object can be obtained using the method getAlgorithm() in the class java.security.SecureRandom. This method requires no parameters and it returns the name of the algorithm for the SecureRandom object.A program that demonstrates this is given as follows −Exampleimport java.security.*; import java.util.*; public class Demo {    public static void main(String[] argv) {       try {          SecureRandom sRandom = SecureRandom.getInstance("SHA1PRNG");          String algorithmName = sRandom.getAlgorithm();          System.out.println("The Algorithm is: " + algorithmName);       } catch (NoSuchAlgorithmException e) { ...

Read More

Java Program to remove an element from List with ListIterator

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 312 Views

Let’s say the following is our List with elements −ArrayList < String > arrList = new ArrayList < String > (); arrList.add("Jack"); arrList.add("Tom"); arrList.add("Brad"); arrList.add("Amy"); arrList.add("Ben"); arrList.add("Peter"); arrList.add("Katie"); arrList.add("Tim");Now, use the listIterator(). The next() method returns the next element in the List. Hoverer, remove an element using remove() method −ListIteratoriterator = arrList.listIterator(); iterator.next(); iterator.remove();Exampleimport java.util.ArrayList; import java.util.ListIterator; public class Demo {    public static void main(String[] args) {       ArrayListarrList = new ArrayList();       arrList.add("Jack");       arrList.add("Tom");       arrList.add("Brad");       arrList.add("Amy");       arrList.add("Ben");       arrList.add("Peter");   ...

Read More

HTML DOM Input Month autofocus Property

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 142 Views

The HTML DOM input month autofocus property returns and modify whether the input month field should get focused or not when page load.SyntaxFollowing is the syntax −Returning autofocusobject.autofocusModifying autofocusobject.autofocus = true | falseExampleLet us see an example of HTML DOM input month autofocus property − HTML DOM autofocus property    body{       text-align:center;    }    p{       font-size:1.5rem;       color:#ff8741;    }    input{}    button{       background-color:#db133a;       color:#fff;       padding:8px;       border:none;       width:120px;   ...

Read More
Showing 51–60 of 1,421 articles
« Prev 1 4 5 6 7 8 143 Next »
Advertisements