Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

how to use split on a file name java

String textfile = "ReadMe.txt"; 
String filename = textfile.split(".")[0]; 
String extension = textfile.split(".")[1];
Comment

PREVIOUS NEXT
Code Example
Java :: How to use java 8 comparator 
Java :: java if statement 
Java :: generic classes in java 
Java :: java stream and filter 
Java :: generate uuid from string 
Java :: integer palindrome in java 
Java :: This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 4.2 or newer. 
Java :: design custom button in android 
Java :: java remove first character 
Java :: logging in java 
Java :: recursion examples java 
Java :: java sort arraylist of arraylist 
Java :: No suitable driver found for jdbc:mysql 
Java :: java round up 
Java :: java how to create an array 
Java :: Java JTextArea text size 
Java :: java how to print out a string in uppercase 
Java :: File Appender log4j2.properties spring 
Java :: reverse negative number 
Java :: set matrix zeros programming creek 
Java :: jasypt-spring-boot 
Java :: method java 
Java :: java stream sort 
Java :: reading string after double in java 
Java :: stringbuilder java 
Java :: how to highlight text in android studio 
Java :: constructor in java 
Java :: java print boolean with spaces 
Java :: java sort arraylist of floats 
Java :: How to find the maximum occurring character in a given String? using hashmap java 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =