Back to project page droidling.
The source code is released under:
Copyright (c) 2012 Keith Trnka Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softwa...
If you think the Android project droidling listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.github.ktrnka.droidling.helpers; /*from w ww .j a v a 2 s .c o m*/ public class Util { /** * Strip one character from the end of the string if present. * * @param builder * @param c */ public static void strip(StringBuilder builder, char c) { if (builder.length() == 0) return; if (builder.charAt(builder.length() - 1) == c) builder.setLength(builder.length() - 1); } }