Author: Arpit Mandliya
- 08 February
Print Classpath in Java
In this post, we will see how to print CLASSPATH in java. 💡 Outline You can use System.getProperty("java.class.path") to get ClassPath in java. [crayon-678c407cf3a84152385158/] What is CLASSPATH in java CLASSPATH variables tell application to location where it should find user classes. Default CLASSPATH is current working directory(.). You can override this value using CLASSPATH variables […]
- 07 February
Get Unicode Value of Character in Java
In this post, we will see how to get unicode value of character in java. Get Unicode Value of Character in Java You can simply use below code to get unicode value of character in java. [crayon-678c407cf3e7b755344692/] Here is complete example to print unicode value of character in java: [crayon-678c407cf3e80264927855/] Output Unicode value of character […]
- 07 February
Remove element by value in vector in C++
In this post, we will see how to remove element by value in vector in C++. Vectors are a highly recognized concept and are widely used in the world of C++ programming. Vectors are flexible and are utilized in both easy and complex codes. This tutorial focuses on and demonstrates the different ways available to […]
- 07 February
Get number of days in Month in java
Learn about how to get number of days in Month in java. Get number of days in Month in java Using YearMonth’s lengthOfMonth() [Java 8] You can use YearMonth‘s lengthOfMonth() method to get number of days in Month in java. Pass Year and month to YearMonth’s of and create YearMonth object. Call lengthOfMonth() on YearMonth’s […]
- 04 February
Get last day of Month in java
Learn about how to get last day of month in java. There are times when you need to get last day of month to process data at the end of each month. For example: Processing salaries of the employee in your company. There are multiple ways to get last day of month in java Ways […]
- 02 February
Find Character in String in Java
In this post, we will see how to find character in String in java. How to Find Character in String in Java There are multiple ways to find char in String in java 1. Using indexOf() Method to Find Character in String in Java indexOf() method is used to find index of substring present in […]
- 02 February
Remove Comma from String in Java
Learn about how to remove comma from String in java. Remove comma from String in java 1. Using replace() method You can use String’s replace() method to remove commas from String in java. Here is syntax of replace method: [crayon-678c407d002a9308840799/] [crayon-678c407d002b0906899680/] Output: India China Bhutan 2. Using replaceAll() method You can also use replaceAll() method […]
- 31 January
How to Print Multiple Variables in Java
1. Introduction In Java programming, it’s common to need to print multiple variables for various purposes like debugging, logging, or displaying information to the user. These variables might be of different data types (such as integers, strings, or floats), and our goal is to effectively combine and display them. The expected output is a coherent […]
- 25 January
Create ArrayList of Objects in Java
In this tutorial, we will learn how to create ArrayList of objects in Java. We will create a Book class with different properties and use it to create custom book objects when creating an ArrayList of objects. We will filter these book objects using certain criteria and add the book objects that meet the criteria […]