Skip to main content

substring

Java stuff. When you want to derivate a String from a String you already have, lets say you want to get "burger" out of "hamburger" you apply. stringName.substring(3), this is the same as having "burger" since it will take "hamburger" and from the position in 3 (programming uses 0 as the first position), it will display the rest of the String.

If you want from certain position to another, lets say "mistaken" and you just want "stake", you will need to apply: stringName.substring(2,6), this will give you "stake".
public int resultado(String buscado, String origen) {

int cont = 0;

int lng=buscado.length();

for(int i=0;i<=(origen.length()-lng);i++){


if ( buscado.equals (origen.substring(i,(i+lng) ) ) )

cont++;

}

/** AQUI DEBES DE CODIFICAR PARA CONTAR CUANTAS VECES BUSCADO ESTA EN ORIGEN */

return cont;

}
by h3ct0r January 29, 2008
mugGet the substring mug.

Sibsprings

Collective, gender neutral term for nephews and nieces. Portmanteau of 'siblings offspring'.
I have nine beautiful sibsprings, five nephews and four nieces. So much better when you can hand them back to their parents
by MysteriousStrangerNo.2386 September 28, 2011
mugGet the Sibsprings mug.

SixStringSamurai

An uber cool guy that plays the guitar and knows the way of the Samurai. Often used in reference to someone doing the impossible.
Dude, that guy just pulled a SixStringSamurai!
by HeWhoKnowsAll December 7, 2004
mugGet the SixStringSamurai mug.

substinance

The wondrous sustenance that can only be obtained through the consumption of hilarious amounts of subway sandwiches.
After another night on the piss without eating all day, i was in dire need of some substinance
by Naryzhud January 30, 2007
mugGet the substinance mug.

substrious

A kind person and friend. Department of Homeland Security's Secret Service director from kinkocat's State of New York.
Substrious is amazing.
by thereallycoolemma101 October 3, 2018
mugGet the substrious mug.

Substinance

Food that can barely be considered food. or a very informal meal, with mostly junk food.
substinance ie. junk food replacing real food for a meal.
by davismaxwell January 24, 2009
mugGet the Substinance mug.

Substain

substantial sustainment; being sustained because it is crucial
substain yourself!
by Eevee123 April 3, 2011
mugGet the Substain mug.

Share this definition

Sign in to vote

We'll email you a link to sign in instantly.

Or

Check your email

We sent a link to

Open your email