Giri Raju has Published 90 Articles

Returning an Array from a Method in Java

Giri Raju

Giri Raju

Updated on 25-Feb-2020 05:21:22

187 Views

A method may also return an array. For example, the following method returns an array that is the reversal of another array -Examplepublic static int[] reverse(int[] list) {    int[] result = new int[list.length];    for (int i = 0, j = result.length - 1; i < list.length; i++, j--) ... Read More

How to create a dynamic 2D array in Java?

Giri Raju

Giri Raju

Updated on 24-Feb-2020 11:15:24

2K+ Views

If you wish to create a dynamic 2d array in Java without using List. And only create a dynamic 2d array in Java with normal array then click the below linkYou can achieve the same using List. See the below program. You can have any number of rows or columns.Exampleimport ... Read More

java access modifiers with method overriding

Giri Raju

Giri Raju

Updated on 24-Feb-2020 06:03:42

4K+ Views

Yes, an overridden method can have a different access modifier but it cannot lower the access scope.The following rules for inherited methods are enforced -Methods declared public in a superclass also must be public in all subclasses.Methods declared protected in a superclass must either be protected or public in subclasses; ... Read More

How can I change the default sort order of MySQL tables?

Giri Raju

Giri Raju

Updated on 21-Feb-2020 07:09:56

398 Views

As we know that when we use ORDER BY Clause, the default sort order of MySQL table is ascending, start with the smallest value. We can change this default order by using DESC keyword along with ORDER BY Clause. The following example will clarify this concept −>mysql> Select * from ... Read More

Finding the table from which data is fetched in SAP

Giri Raju

Giri Raju

Updated on 13-Feb-2020 12:49:48

717 Views

You can get the data if it is displayed in a transaction. Here are the steps you need to follow.a) First point the cursor on the field for which you want to get the data.b) Press F1 for help. This will open a dialog with heading “Performance assistant”c) Click on ... Read More

How to write a MySQL stored function that inserts values in a table?

Giri Raju

Giri Raju

Updated on 13-Feb-2020 07:00:24

1K+ Views

As we know that function is best used when we want to return a result. Hence, when we will create stored functions for manipulating tables like to Insert or Update values then it would be more or less like stored procedures.ExampleIn the following example we are creating a stored function ... Read More

How can I restore a database dumped by mysqldump?

Giri Raju

Giri Raju

Updated on 07-Feb-2020 06:37:34

175 Views

Suppose if we have dumped the whole database and now want to restore it then we can do it with the following example −C:\mysql\bin>mysql -u root query < tutorials.sqlWith the help of above query, we are restoring the dumped database named ‘tutorials’, in the file tutorials.sql, into other database named ... Read More

How can we use the MySQL reserved words as an identifier?

Giri Raju

Giri Raju

Updated on 03-Feb-2020 06:17:07

454 Views

We must have to use quotes with reserved words to use them as an identifier. The quotes can be single or double depends upon ANSI_QUOTES SQL mode.If this mode is disabled then the identifier quote character is the backtick (“`”). Consider the following example in which we created a table ... Read More

Font size adjust of an element with CSS

Giri Raju

Giri Raju

Updated on 30-Jan-2020 10:35:27

125 Views

This property enables you to adjust the x-height to make fonts more legible. Possible value could be any number.Example                            Asia is a continent.          

Usage of font-style property in CSS

Giri Raju

Giri Raju

Updated on 30-Jan-2020 10:18:40

88 Views

The font-style property is used to make a font italic or oblique. You can try to run the following code to set the font-style property:                            This text will be rendered in italic style          

Advertisements