# Solucionario De Probabilidad E Inferencia Estadistica Rufino Moya Y Gregorio Saraviagolkes [BETTER]

## Solucionario De Probabilidad E Inferencia Estadistica Rufino Moya Y Gregorio Saraviagolkes [BETTER]

A:

I am assuming you mean the Latin ones like saraviagolkes
Try this formula
=CONCATENATE(FIND(” “,A1),C1,FIND(“.”,A1),C2,FIND(“-“,A1),C3,FIND(“/”,A1))

Q:

Java – Replace the first 2 characters with a dash

I need to replace the first 2 characters with a dash.
So, for example, a string that has a string of the form:
dd – – dd –

would be converted to
— – – –

This is what I have so far:
public static String substituteFirstTwoChars(String source) {

char firstChr =”;
char secondChr =”;

char firstChr2 = firstChr;
char secondChr2 = secondChr;

for (char chr : source.toCharArray()) {
if(chr == ‘-‘ && firstChr ==”){
secondChr2 = ‘-‘;
firstChr2 = chr;
} else if (chr == ‘-‘ && secondChr ==”){
firstChr2 = chr;
}
}

StringBuffer sb = new StringBuffer(source.length() + 1);

sb.append(“–“);
sb.append(firstChr2);
sb.append(secondChr2);

return sb.toString();

}

Is there a better way to do this?

A:

I’m assuming you want to eliminate just the first two

0644bf28c6