Usharani has Published 80 Articles

Breaking out of nested loop in java

usharani

usharani

Updated on 24-Feb-2020 12:17:34

325 Views

Yes, break statement can be used in nested for loops. It works on the for loop in which it is applied. See the example below.Examplepublic class Tester {    public static void main(String[] args) {       for(int i = 0; i< 2; i++) {         ... Read More

How to create a JAR file?

usharani

usharani

Updated on 24-Feb-2020 09:39:53

20K+ Views

You can create a JAR file using the following command.jar cf jar-file input-file(s)  You can also create JAR files using IDE’s. To create a JAR file using eclipse follow the procedure given below.Open the Jar File wizardThe Jar File wizard can be used to export the content of a project ... Read More

How many packages and classes are there in Java Standard Edition 8?

usharani

usharani

Updated on 18-Feb-2020 10:48:17

1K+ Views

Java Standard Edition provides 14 packages namely –applet − This package provides classes and methods to create and communicate with the applets.awt− This package provides classes and methods to create user interfaces.beans− This package contains classes and methods to develop components based on java beans. io− This package contains classes and ... Read More

Getting age of tracefiles in SAP HANA database

usharani

usharani

Updated on 13-Feb-2020 12:40:44

177 Views

In SAP HANA database, you have diagnosis files include log and trace files, a mixture of other diagnosis, error, and information files.These files can be checked for diagnosis to find errors in SAP Hana database.In HANA db, you have trace files stored separated per host, so to get access to ... Read More

Use of String.compare for a varchar field in SAP

usharani

usharani

Updated on 13-Feb-2020 12:36:25

60 Views

Try to use SqlFunctions.DateDiff method overload which requires 3 inputs as follows −var res = from a in db.Set() where SqlFunctions.DateDiff("dd", a.Date, "20161922") >= 0 && SqlFunctions.DateDiff("dd", a.Date, "20161122") < 0 select a

Usage of direction property in CSS

usharani

usharani

Updated on 31-Jan-2020 06:03:46

81 Views

The direction property is used to set the text direction. Possible values are ltr or rtl.ExampleYou can try to run the following code to set the text direction with CSS:                            This text will be renedered from right to left          

Usage of font-size property in CSS

usharani

usharani

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

100 Views

The font-size property is used to increase or decrease the size of a font. The font-size property is used to control the size of fonts. Possible values could be xx-small, x-small, small, medium, large, x-large, xx-large, smaller, larger, size in pixels or in %.             ... Read More

CSS Measurement Units

usharani

usharani

Updated on 30-Jan-2020 08:25:48

288 Views

CSS supports a number of measurements including absolute units such as inches, centimeters, points, and so on, as well as relative measures such as percentages and em units. You need these values while specifying various measurements in your Style rules.The following are the CSS Measurement Units along:UnitDescriptionExample%Defines a measurement as ... Read More

How does MySQL handle out of range numeric values?

usharani

usharani

Updated on 30-Jan-2020 06:59:14

516 Views

Handling of MySQL numeric value that is out of allowed range of column data type depends upon the SQL mode in following ways −(A) Enabled SQL strict mode - When strict SQL mode is enabled, MySQL returns the error on entering the put-of-range value. In this case, the insertion of some ... Read More

How can we fetch month and day from a given date in MySQL?

usharani

usharani

Updated on 30-Jan-2020 05:37:11

92 Views

It can be done inflowing two ways −(A) With the help of EXRACT() function - EXTRACT() function can fetch any part from MySQL TIMESTAMP value. Following is the example of fetching month and day from a given date.mysql> Select EXTRACT(Month from '2017-10-22') AS 'MONTH'; +-------+ | MONTH | +-------+ | ... Read More

Advertisements