• Menu
  • Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

JavaBeat

Java Tutorial Blog

  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us

Anees Asghar

How to Sort an Array in Ascending Order in Java

March 31, 2024 //  by Anees Asghar

To sort an array in ascending order in Java, use the sort() method or sorting algorithms, like bubble, selection, quick, etc.

Category: Java

How to Convert a Date to dd/MM/yyyy Format in Java

March 19, 2024 //  by Anees Asghar

To convert a date to a “dd/MM/yyyy” format in Java, use the “SimpleDateFormat()” constructor or the “ofPattern()” method of the “DateTimeFormatter” class.

Category: Java

How to Capitalize the First Letter of a String in Java

March 19, 2024 //  by Anees Asghar

To capitalize the first letter of a string in Java, use the “substring().toUpperCase()”, “Matcher.replaceFirst()”, or “StringUtils.capitalize()” method

Category: Java

How to Get Current Year in Java

March 19, 2024 //  by Anees Asghar

To get the current year in Java, you can use different built-in classes as well as third-party libraries, such as Calendar, Year, CalendarUtils, Joda Time, etc.

Category: Java

How to Calculate Percentage in Java

March 19, 2024 //  by Anees Asghar

To calculate percentage in Java, you can use the standard percentage formula (i.e., percentage = (parts/whole) * 100) or BigDecimal class.

Category: Java

How to Find the Square Root of a Number in Java

March 19, 2024 //  by Anees Asghar

To find the square root of a number in Java, use the methods like “sqrt()”, “pow()”, “binary search algorithm”, or “brute force”.

Category: Java

How to Convert Set to a List in Java?

March 8, 2024 //  by Anees Asghar

To convert a Set to a List in Java, you can use different methods, such as “List.addAll()”, “List Constructor”, “Java 8 Stream API”, “copyOf()”, etc.

Category: Java

How to Check Java Version? Windows | Mac | Linux

March 8, 2024 //  by Anees Asghar

To check the Java version on Windows, Linux, or Mac operating systems, run the “java –version” command from the respective terminal.

Category: Java

  • « Go to Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Interim pages omitted …
  • Page 8
  • Go to Next Page »

Primary Sidebar

Follow Us

  • Facebook
  • Pinterest

FEATURED TUTORIALS

How to Initialize an Array in Java

Introduction to Java Server Faces (JSF)

Introduction to Java 6.0 New Features, Part–1

Java 6.0 Features Part – 2 : Pluggable Annotation Processing API

Introduction to Java Server Faces(JSF) HTML Tags

JavaBeat

Copyright © by JavaBeat · All rights reserved
Privacy Policy | Contact