Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

java print a line seperate by space

public class SimpleTesting{
    public static void main(String[] args) { 
        String str = "Hello This is DelfStack";
        String[] newStr = str.split("s+");
        for (int i = 0; i < newStr.length; i++) {
            System.out.println(newStr[i]);
        }
    }
}
Comment

PREVIOUS NEXT
Code Example
Java :: max int array java 
Java :: array reverse in java 
Java :: .entrySet 
Java :: java spring set private field in test 
Java :: java sort arraylist of floats 
Java :: resizing ImageIcon in JButton java 
Java :: stream.concat 
Java :: how to delete an element from an array in java data structure 
Java :: android get user defined device name programmatically 
Java :: how to create a console in java gui 
Java :: setimageuri crash 
Java :: dont kill service in android studio 
Java :: transparent card background android 
Java :: how to read a table from text file in java 
Java :: android activity keyboard hide 
Java :: module java.base does not "opens java.io" to unnamed module 
Java :: arraylist to primitive array 
Java :: java.lang.SecurityException: Permission Denial: reading androidx.core.content.FileProvider 
Java :: map.keyset 
Java :: java run jnlp 
Java :: android press back 2 times to exit 
Java :: width and height of screen java 
Java :: The superclass "jakarta.servlet.http.HttpServlet" was not found on the Java Build Path 
Java :: how to make window in java 
Java :: fix nullpointerexception 
Java :: 1 elemenet array java 
Java :: java check if string appears twice in arraylist 
Java :: exception class implementation in java 
Java :: java list change element position 
Java :: java streams 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =