• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to secondary sidebar
  • Skip to footer
  • Home
  • Java Tutorial
  • Node.js Tutorial
  • C Tutorial
  • Privacy Policy
  • Contact Us
  • About Us
Tech Stack Journal

Tech Stack Journal

  • Java
  • Node.js
  • Docker
  • Algorithms
  • Spring Core

Archives for April 2020

How to Convert an Integer to Octal in Java

April 24, 2020 by Admin Leave a Comment

Java wrapper class Integer provides an utility function toOctalString(int) which returns an integer in octal form. However, in this post, we will also see an example on how we can convert integer to octal form mathematically without using Java API classes. If you divide a number with 8, what you get in the reminder is the last digit of its octal form. We repeat this until … [Read more...] about How to Convert an Integer to Octal in Java

Next

How to Reverse an Integer in Java

April 24, 2020 by Admin Leave a Comment

In this example, we will see how to reverse an integer in Java using mathematical equations, StringBuffer and StringBuilder classes. Reverse an Integer in Java using Mathematical Equations To reverse an integer mathematically, first thing what we should do is to take out the last digit as a separate integer. That is possible by dividing the number by 10. After dividing … [Read more...] about How to Reverse an Integer in Java

Next

Quick Sort using Hoare Partition and Lomuto Partition in Java

April 23, 2020 by Admin Leave a Comment

Quick Sort is based on the divide-and-conquer strategy. It is also called a partition exchange sort. It was developed by Tony Hoare in 1959. Steps for Quick Sort: First step in Quick Sort is to choose an element called as pivot. Once the Pivot is selected, we need to reorder the elements so that:all the elements less than the Pivot are placed before Pivot, and elements … [Read more...] about Quick Sort using Hoare Partition and Lomuto Partition in Java

Next

Bubble Sort in Java

April 22, 2020 by Admin Leave a Comment

In Bubble Sort, we always compare one array element with its adjacent element. If the first element is greater than the next element, we swap both of them. These steps will be repeated several times to push all the big numbers to the end one after one. Program: Output: … [Read more...] about Bubble Sort in Java

Next

How to read input from User in Java

April 21, 2020 by Admin Leave a Comment

In this post, we will discuss on how to read input from User using Scanner and InputStreamReader. Scanner(System.in) To read values of known type from standard input, we can use Scanner class. When I say known types, any primitive like int, double, char or a String. Scanner provides various utility methods to read input such as nextShort(), nextFloat(), nextDouble(), … [Read more...] about How to read input from User in Java

Next
Next Page »

Primary Sidebar

  • Facebook
  • Pinterest
  • YouTube

More to See

How to Show Last Updated Date in Posts with Genesis Framework

December 12, 2020 By Admin

Get Environment Variables and System Properties in Java

September 18, 2020 By Admin

Tags

access modifiers in java Access Specifiers in Java array in class java ArrayIndexOutOfBoundsException Arrays in Java Constructor Definition in Java Constructor in Java Constructor in Java with Example Definition of Constructor in Java example of a loop Example of Constructor in Java final method final variable First Hello World Java Program for loop in java with example for loop java example for loops in java examples for loops java example How to run Java Hello World from command prompt How to use Constructor in Java How to write Hello World Java program in Eclipse Inheritance in Java Installing Java Installing Java in Windows Introduction to Java Introduction to Java Programming Iterating over an array Java Comments Java Do While Loop Java For Loop Java Hello World Command Line Java Hello World Example Java Hello World in Eclipse Java Hello World Program Java Hello World Tutorial Java Inheritance Java Installation Java Intro Java Introduction Java Statements Java While Loop Static Methods in Java Static Variables in Java Types of Comments What is a Constructor in Java

Secondary Sidebar

Categories

  • Algorithms
  • Blogging
  • Docker
  • Java
  • Node.js
  • Spring Core

Archives

  • January 2021 (1)
  • December 2020 (1)
  • September 2020 (2)
  • August 2020 (5)
  • July 2020 (4)
  • June 2020 (1)
  • May 2020 (4)
  • April 2020 (22)
  • November 2019 (3)
  • September 2019 (2)
  • August 2019 (6)

Footer

Navigation

  • Home
  • Java Tutorial
  • Node.js Tutorial
  • C Tutorial
  • Privacy Policy
  • Contact Us
  • About Us

My Other Sites

Spec Watchers

Speak New Language

Recent

  • [Solved] How to fix java.lang.InstantiationException
  • How to Show Last Updated Date in Posts with Genesis Framework
  • Get Environment Variables and System Properties in Java
  • Autowire using Java Based Spring Configuration
  • Java based Spring Configuration

Search

Tags

access modifiers in java Access Specifiers in Java array in class java ArrayIndexOutOfBoundsException Arrays in Java Constructor Definition in Java Constructor in Java Constructor in Java with Example Definition of Constructor in Java example of a loop Example of Constructor in Java final method final variable First Hello World Java Program for loop in java with example for loop java example for loops in java examples for loops java example How to run Java Hello World from command prompt How to use Constructor in Java How to write Hello World Java program in Eclipse Inheritance in Java Installing Java Installing Java in Windows Introduction to Java Introduction to Java Programming Iterating over an array Java Comments Java Do While Loop Java For Loop Java Hello World Command Line Java Hello World Example Java Hello World in Eclipse Java Hello World Program Java Hello World Tutorial Java Inheritance Java Installation Java Intro Java Introduction Java Statements Java While Loop Static Methods in Java Static Variables in Java Types of Comments What is a Constructor in Java

Copyright © 2021 · Tech Stack Journal · Log in