Skip to content
Yu's Blog

Yu's Blog

Welcome to my blog

Tag: String

Posted on December 7, 2021

How to reverse String in java

Use the code below: // conversion from String object to StringBuffer StringBuffer sbr = new StringBuffer(str); // To reverse the string sbr.reverse();

Posted on August 19, 2020

Conversion between array & Set, StringBuilder & String

Array & Set Example: Character vowel[] = { 'a', 'A', 'e', 'E', 'i', 'I', 'o', 'O', 'u', 'U' }; Set<Character> v = new HashSet<>(Arrays.asList(vowel)); StringBuilder & String Example: StringBuffer sb = new StringBuffer(); String str = sb.toString();

Posted on August 12, 2020

Conversion between String and Integer in java

From String to Integer Integer.parseInt(my_string); From Integer to String Integer.toString(my_integer);

CONTACT ME

My GitHub
My LinkedIn

Recent Posts

  • WebSocket in Java
  • Design Patterns – Command Pattern
  • Design Patterns – Decorator Pattern
  • Design Patterns – Iterator Pattern
  • Design Pattern – Repository Design Pattern

Categories

  • Algorithm
  • Android
  • Architecture
  • BlockChain
  • C/C++
  • Cloud
  • Design
  • DevOps
  • Flutter
  • Git
  • Go
  • Java
  • JavaScript
  • Kotlin
  • Mac
  • Machine Learning
  • Networking
  • OS
  • Python
  • Security
  • Server
  • Spring
  • Tool
  • Unity
  • Unreal
  • Vim
  • Windows
  • WordPress

Tags

  • Algorithm
  • AndroidStudio
  • Android Studio
  • Array
  • AWS
  • BackTracking
  • Binary Search
  • Bit Manipulation
  • BST
  • Detached HEAD
  • Docker
  • DynamicProgramming
  • Express
  • Express.js
  • Firebase
  • Flutter
  • git
  • GitHub
  • Google Cloud
  • HashMap
  • Integer
  • Java
  • JavaScript
  • Kotlin
  • Kubernetes
  • LaserDefender
  • LeetCode
  • LinkedList
  • List
  • Mac
  • Node.js
  • OOD
  • OperatingSystem
  • Recursion
  • Server
  • SideProject
  • Sorting
  • Spring
  • Spring Boot
  • String
  • Tree
  • Unity
  • VPS
  • Wechat
  • Windows
March 2023
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  
« Feb    

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org