• 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

Java

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

Initialize an Array in Java | Simple to Advanced

March 8, 2024 //  by Shameen Shahid

To initialize an array in Java, use the default value, “new” keyword, or call the built-in methods such as IntStream.range(), clone(), setAll(), etc.

Category: Java

How to Get String Length in Java?

March 8, 2024 //  by Shameen Shahid

The length() method of the Java String and StringUtils class or the length property for Arrays are used to get the string length as shown in this article.

Category: Java

  • « Go to Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Interim pages omitted …
  • Page 34
  • 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