Securing Web APIs and Best Practices
Web APIs are the backbone of an organization’s database. The downside of publicly available APIs is that they are risk factors to the API providers. APIs are the tools and…
Favourite tutorials for developers
Web APIs are the backbone of an organization’s database. The downside of publicly available APIs is that they are risk factors to the API providers. APIs are the tools and…
Security is an important part in any software development and APIs are no exception. Even for a public API, having control over who can access your service is a usual…
If you're a web developer, you've probably had to make a user account system. The most important aspect of a user account system is how user passwords are protected. User…
In Java 8, you can use Files.lines to read file as Stream. A new method lines() has been added since 1.8, it lets BufferedReader returns content as Stream.
In Java, we can use Double.parseDouble() to convert a String to primitive double, and we can use Double.valueOf() to convert a String to an Double object.
In Java, we can use String.format or DecimalFormat to format a double, both support Locale based formatting.
There are a few ways to round float or double to 2 decimal places in Java. In short, for monetary calculation, picks BigDecimal; for display purpose, picks DecimalFormat("0.00"). We can…
In Java, there are few ways to display double in 2 decimal places. We can use DecimalFormat("0.00") to ensure the number is round to 2 decimal places. We also can…
There are many monetary values calculation in the financial or e-commerce application, and there is one question that arises for this – Should we use double or float data type…
In Java 8, we can use the Stream.reduce() to sum a list of BigDecimal. Java example to sum a list of BigDecimal values, using a normal for loop and a…