V Jyothi has Published 77 Articles

How to set that the text direction will be submitted in HTML?

V Jyothi

V Jyothi

Updated on 03-Mar-2020 05:30:41

220 Views

Use the dirname attribute allows you to submit the the text direction. The value will be the name of the input followed by “.dir”.Example           Student Contact Form                Student Name:          Student Subject:                    

How to create table heading in HTML?

V Jyothi

V Jyothi

Updated on 02-Mar-2020 12:20:32

706 Views

Use the tag in HTML to create a heading. The HTML tag is used for specifying a header cell or table header within a table.The following are the attributes −AttributeValueDescriptionabbrabbreviated_textDeprecated − Specifies an abbreviated version of the content in a header cell.alignrightleftcenterjustifycharDeprecated − Content alignment in header cell.axisNameDeprecated ... Read More

How to apply EXTRACT() function with WHERE Clause on the dates stored in MySQL table?

V Jyothi

V Jyothi

Updated on 27-Feb-2020 06:34:26

988 Views

With the help of following MySQL query, we can apply EXTRACT() function with WHERE clause on the dates stored in a table.mysql> Select StudentName,EXTRACT(Year from dateofreg)AS YEAR from testing WHERE StudentName = 'Gaurav'; +-------------+------+ | StudentName | YEAR | +-------------+------+ | Gaurav      | 2017 | +-------------+------+ 1 row in set (0.00 sec)

How to Convert Double to String to Double in Java?

V Jyothi

V Jyothi

Updated on 26-Feb-2020 09:51:54

329 Views

Java lang package provides a Double class which has methods to convert Double to String and vice versa. You can convert a String to a double using the parseDouble() method and double to String using the toString() methodExampleLive Demopublic class StringDouble {    public static void main(String args[]){       Double ... Read More

How to test String is null or empty?

V Jyothi

V Jyothi

Updated on 26-Feb-2020 08:05:55

560 Views

We can verify whether the given string is empty using the isEmpty() method of the String class. This method returns true only if length() is 0.ExampleLive Demoimport java.lang.*; public class StringDemo {    public static void main(String[] args) {       String str = "tutorialspoint";       // ... Read More

String compare by == operator in Java

V Jyothi

V Jyothi

Updated on 26-Feb-2020 06:23:02

146 Views

You can compare two strings using == operator. But, it compares references of the given variables, not values.ExampleLive Demopublic class Sample {    public static void main(String args[]){       String str1 = "hello";       String str2 = "hello";       System.out.println(str1 == str2);    } }Outputtrue

What does the method get(int) do in java?

V Jyothi

V Jyothi

Updated on 20-Feb-2020 12:18:14

515 Views

The get(int index) method of the java.util.ArrayList class returns the element at the specified position in this list.Exampleimport java.util.ArrayList; public class ArrayListDemo {    public static void main(String[] args) {       ArrayList arrlist = new ArrayList(5);       arrlist.add(15);       arrlist.add(22);       ... Read More

What does the method addAll(Coll C)do in java?

V Jyothi

V Jyothi

Updated on 20-Feb-2020 11:30:01

124 Views

The addAll(Collection

Can we define a class inside a Java interface?

V Jyothi

V Jyothi

Updated on 20-Feb-2020 05:46:54

7K+ Views

Yes, you can define a class inside an interface. In general, if the methods of the interface use this class and if we are not using it anywhere else we will declare a class within an interface.Exampleinterface Library {    void issueBook(Book b);    void retrieveBook(Book b);    public class ... Read More

How to find package explorer in Java eclipse project?

V Jyothi

V Jyothi

Updated on 20-Feb-2020 05:19:59

24K+ Views

To view the project explorer, click on Window menu then, click on Show View and select Project Explorer.There is simpler way to open project explorer, when you are in the editor press alt + shift + w and select project explorer.

Advertisements