Back to project page foodroid.
The source code is released under:
GNU General Public License
If you think the Android project foodroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * To change this template, choose Tools | Templates * and open the template in the editor./* w ww . j a v a 2 s .c om*/ */ package smsserver; /** * * @author Administrator */ public class Settings { public static final String DATABASE_URL = "jdbc:mysql://localhost/restaurant"; public static final String DATABASE_USER = "root"; public static final String DATABASE_PASS = ""; public static String replace(String text, String searchString, String replacementString) { StringBuffer sBuffer = new StringBuffer(); int pos = 0; while ((pos = text.indexOf(searchString)) != -1) { sBuffer.append(text.substring(0, pos) + replacementString); text = text.substring(pos + searchString.length()); } sBuffer.append(text); return sBuffer.toString(); } }