BerMuc
BAN USER
Simple Java
private static String stripSpaces(String input) {
String output = "";
if (input == null || input.isEmpty()) {
return output;
}
for (int i = 0; i < input.length(); i++) {
if (input.charAt(i) == ' ' && i + 1 < input.length() && input.charAt(i+1) == ' ') {
continue;
}
output += input.charAt(i);
}
return output;
}
Here a possible solution in Swift:
func randomizer(num:Int, addNum: Int) -> Int {
if num > 0 {
var tmp:Int = NSDate.timeIntervalSinceReferenceDate().bridgeToObjectiveC().integerValue;
return (tmp % num) + addNum;
} else {
return 0;
}
}
// range 100-199
println(randomizer(100,100));
Here a solution in Swift:
func shrinkString(var string: String, substrings: String[]) -> String {
for substring in substrings {
if !string.rangeOfString(substring).isEmpty {
string = string.stringByReplacingOccurrencesOfString(substring, withString: "")
string = shrinkString(string, substrings);
}
}
return string;
}
Repjacobghester2, Accountant at ASAPInfosystemsPvtLtd
I'm an artist at heart. I went from print design to web development and lots of server administration professionally ...
Repevelynleary0, Consultant at Arista Networks
Hi, I am Evelyn from Los Angeles, USA. I have been a Marketing Manager in Veramons Digital Company from last ...
Repnickjonson885, Consultant at ASU
I am Department director in a Libera company. I live in Buffalo NY, USA. I am a hard worker girl ...
RepShastri Ji is well known hindi and tamil vashikaran specialist. He will give you effective and simple totke to control ...
Repjonesreina93, Hawaiian airlines reservations at American Airlines
Hello, I am currently working at the airport as an air hostess, and my responsibility are Check tickets and assisted ...
Repverarfurman, Problem Setter at Cerberus Capital
I am Vera from Bullard USA, I am working as a Violin repairer in a Handyman company. My interest in ...
Repgradyjvierra, Animator at Alliance Global Servies
Je suis Grady de Phoenix USA. Je travaille en tant que technicien de laboratoire clinique dans la société Samuels Men ...
Repkellydbrown23, Jr. Software Engineer at Auto NInja
I live in College Park USA with my family, and my current job is clerk in Luria’s company. I ...
Repleighpjoyce, job tessio at CapitalIQ
Welcome to my world.I am a safety-conscious HVAC Engineer with experience with mechanical engineering Brampton HVAC design for commercial ...
Repbrandysolsen, Area Sales Manager at AMD
I am a Social butterflies who enjoy travel.Have fun doing this job and project an atmosphere that reflects Amazon ...
Repmitadwilson, Scientific Officer at Cleartrip.com
Hello, I am Mita from Dayton, I am working as a Systems programmer in Evans company, I have Experience of ...
RepHi, I am Anne from Portsmouth, USA. I have been working as a freelance digital illustrator specialized in 3D character ...
RepHuge collection of cheap ammo for Rifle, Handgun, Shotgun & Rimfire from top brands you are looking for.
Reprubyperezj, Backend Developer at A9
My name is Ruby Perez and I live in Lyndonville and it would be my honor and privilege to be ...
Open Chat in New Window
- BerMuc June 11, 2014