Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Dec 11th, 2017
80
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
public class done {
public static void main(String[] args) {
String input = "jjjjjaaaaasssspppeeerrrrr";
System.out.println(input.replaceAll("(.)\\1{1,}", "$1"));
}
}
//Output
jasper
Add Comment
Please,
Sign In
to add comment
Public Pastes
⭐FREE voucher method latest😍
Python | 6 sec ago | 0.30 KB
😍FREE GIFTCARDS method latest☀️
Python | 9 sec ago | 0.30 KB
⭐FREE GIFTCARDS method new⭐
Python | 12 sec ago | 0.31 KB
😍FREE gift Method New😍
Python | 14 sec ago | 0.31 KB
☀️FREE voucher Method latest😍
Python | 17 sec ago | 0.30 KB
⭐FREE GIFTCARDS method new☀️
Python | 20 sec ago | 0.31 KB
⭐FREE voucher Method latest⭐
Python | 25 sec ago | 0.31 KB
😍FREE voucher method latest⭐
Python | 28 sec ago | 0.32 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!