We use cookies to improve user experience, and analyze website traffic.

  • How To
  • AngularJs
  • Apache
  • CSS
  • Git
  • Google Maps
  • HTML
  • Java
  • JavaScript
  • Linux
  • NodeJs
  • PHP
  • Symfony
  • Vue.js
  • Books
    • Learn HTML
    • Learn CSS
    • Learn Git
    • Learn Javascript
    • Learn PHP
  • Exercises
    • HTML
    • JavaScript
    • Git
    • CSS
    • PHP
  • Quizzes
  • Snippets
  • Tools
  • String Functions
  • Books
    • Learn HTML
    • Learn CSS
    • Learn Git
    • Learn Javascript
    • Learn PHP
  • Exercises
    • HTML
    • JavaScript
    • Git
    • CSS
    • PHP
  • Quizzes
  • Snippets
  • Tools
  • String Functions
  1. Snippets
  2. ›
  3. java

How-to articles, tricks, and solutions about JAVA

How to Compare Strings in Java

The comparison of strings is one of the mostly used Java operations. If you’re looking for different ways to compare two strings in Java, you’re at the right place.

java string regex

How to Create a File in Java

Learn 3 ways of creating files in Java with examples. Use java.io.File class, java.io.FileOutputStream class or Java NIO Files.write() class for creating new files in Java.

java file

How to Create Temporary File in Java

Learn the two static methods of createTempFile of the File class. Use the deleteOnExit() method to ensure that the temporary created file will automatically be deleted.

java file

How to Split a String in Java

Learn the ways to split a string in Java. The most common way is using the String.split () method, also see how to use StringTokenizer and Pattern.compile ().

java string regex
Tools
Password Generator HTML Editor HTML encoder/decoder CSS Maker Color Picker Base 64 Code Diff Geometric Images Color Converter Color Mixer Color HEX COLOR HSL Color Hwb Color Cmyk Color Rgb
  • Quizzes
    • HTML Basic
    • CSS Basic
    • Javascript Basic
    • PHP basic
    • ES6 Basic
    • TypeScript Basic
    • Angular Basic
    • React Basic
    • Sass Basic
    • Vue.js Basic
    • Git Basic
    • SQL Basic
  • Snippets
    • How To JavaScript
    • How To NodeJs
    • How To Linux
    • How To AngularJs
    • How To PHP
    • How To HTML
    • How To CSS
    • How To Symfony
    • How To Google Maps
    • How To Git
    • How To Apache
    • How To Java
    • How To Vue.js
  • Our Books
    • Learn HTML
    • Learn CSS
    • Learn Git
    • Learn Javascript
    • Learn PHP
    • Exercises
    • HTML
    • JavaScript
    • Git
    • CSS
    • PHP
  • Our Tools
    • Website Audit and SEO
    • Typing Test
    • Color Picker
    • HTML Encoder
    • HTML Editor
    • CSS Maker
    • Password Generator
    • Base 64
    • Code Diff
    • Geometric Images
  • String Functions
    • String Length Calculator
    • String to MD5 Hash Generator
    • String to Sha256 Hash Generator
    • String Reverse
    • URL Encoder
    • URL Decoder
    • Base 64 Encoder
    • Base 64 Decoder
    • Extra Spaces Remover
    • String to Lowercase Converter
  • About Us
  • Privacy Policy for W3Docs
Follow Us
Company © W3docs. All rights reserved.