Vanithasree has Published 85 Articles

How to center canvas in HTML5?

vanithasree

vanithasree

Updated on 03-Mar-2020 12:46:08

8K+ Views

To center canvas in HTML 5, include the canvas tag in div tag. Then we can center align the div tag. By doing so, the canvas is also center aligned.Example.                    This is my canvas          

How do I make a transparent canvas in HTML5?

vanithasree

vanithasree

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

3K+ 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

628 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

235 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

319 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

189 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

981 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

357 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

82 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

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