Vanithasree has Published 80 Articles

How do I make a transparent canvas in HTML5?

vanithasree

vanithasree

Updated on 03-Mar-2020 12:43:23

5K+ Views

The globalAlpha property returns the transparency value of drawing. The value 1.0 of this property specifies no transparency and the value 0.0 of this property specifies full transparency. Hence, by setting the globalAlpha property to 0.0, we can get a transparent canvas.ExampleYou can try to run the following code to make ... Read More

How to specify that the element must be filled out before submitting the form in HTML?

vanithasree

vanithasree

Updated on 03-Mar-2020 11:05:03

758 Views

The required attribute in HTML is used to specify that the element should be filled before the form is submitted. If the field is not filled and the submit button is clicked, an error generates, which fails form submission. The error will be “Please fill out this field”.The required attribute ... Read More

How to include an input field in HTML?

vanithasree

vanithasree

Updated on 03-Mar-2020 07:24:01

379 Views

The HTML tag is used within a form to declare an input element - a control that allows the user to input data.The following are the attributes −AttributeValueDescriptionacceptcontent typesSpecifies a comma-separated list of content types that the server acceptsalignleftrighttopmiddlebottomDeprecated − Defines the alignment of contentaltTextThis specifies text to be used in ... Read More

How to convert a String to an int in Java

vanithasree

vanithasree

Updated on 25-Feb-2020 05:20:34

442 Views

Following example is converting a String to int.ExampleLive Demopublic class Tester {    public static void main(String[] args) {       String intString = "1234";       int value = new Integer(intString).intValue();       System.out.println(value);    } }Output1234

how to shuffle a 2D array in java correctly?

vanithasree

vanithasree

Updated on 24-Feb-2020 11:17:13

1K+ Views

Yes. Create a list to represent a 2D array and then use Collections.shuffle(list).Exampleimport java.util.ArrayList; import java.util.Collections; import java.util.List; public class Tester {    public static void main(String[] args) {       List rows = new ArrayList();       rows.add(new int[]{1, 2, 3});       rows.add(new int[]{4, 5, ... Read More

Java String.equals vs ==

vanithasree

vanithasree

Updated on 24-Feb-2020 10:21:12

258 Views

String.equals() compares the content while == checks whether the references are pointing to the same object or not.ExampleSee the illustration example below −public class Tester {    public static void main(String[] args) {       String test = new String("a");       String test1 = new String("a");   ... Read More

What is a Java class library?

vanithasree

vanithasree

Updated on 18-Feb-2020 10:50:13

1K+ Views

Java is not dependent on any specific operating system so Java applications cannot depend on the platform dependent native libraries, therefore, instead of those Java provides a set of dynamically loaded libraries that are common to modern operating systems.These libraries provide –Container classes and Regular Expressions.Interfaces for tasks that depend ... Read More

Taking schema wise backup in SAP HANA

vanithasree

vanithasree

Updated on 14-Feb-2020 08:11:37

563 Views

Data backup in any RDBMS system comes under Data Persistence layer. SAP HANA holds the bulk of its data in memory for maximum performance, but it still uses persistent storage to provide a fallback in case of failure.When you refer a schema in database, it refers to a namespace in ... Read More

Analogous to IN operator of SQL in SAP

vanithasree

vanithasree

Updated on 13-Feb-2020 11:31:25

151 Views

You can get similar things done in many ways. You can use an internal table usage or a range table.Let me showcase an example with an internal table for your reference.SELECT Id, Name, DOB FROM sEmployee INTO CORRESPONDING FIELDS OF TABLE result_tab FOR ALL ENTRIES IN internal_tab // internal_tab is ... Read More

How can we write MySQL handler, in a stored procedure, that throws an error message and continues the execution?

vanithasree

vanithasree

Updated on 12-Feb-2020 08:00:57

784 Views

As we know that whenever an exception occurred in MySQL stored procedure, it is very important to handle it by throwing proper error message because if we do not handle the exception, there would be a chance to fail application with that certain exception in a stored procedure. MySQL provides ... Read More

Advertisements