Java String Trim Right rtrim(String source)

Here you can find the source of rtrim(String source)

Description

rtrim

License

Apache License

Declaration

public static String rtrim(String source) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static String rtrim(String source) {
        return source.replaceAll("\\s+$", "");
    }/*from  ww w .  j av  a 2s. c o  m*/
}

Related

  1. rtrim(String s)
  2. rTrim(String s)
  3. rtrim(String s, char character)
  4. rtrim(String s, char character)
  5. rtrim(String s, Character c)
  6. rtrim(String source)
  7. rtrim(String src, char ch, int nLen)
  8. rtrim(String str)
  9. rtrim(String str)