Until a few years ago if I did in Java
"Hello" == "Hello"
gave me as a false result, today I saw a code in which they used it with JDK 10 and out of curiosity I went to check it, and it actually returns true, someone can explain why th...
I explain:
I have a String in Java :
String numero = "59.2348837";
this is what I'm trying to do:
String.format( "%.2f", numero)
And I try to get as a result:
String resultado = "59.23";
But it throws me an error becaus...
I have a List of an Object.
public class BusStop {
private String description;
private float lat;
private float lng;
//getter and setter
}
Of which I try to put all its content inside a variable of type String.
I tri...
I was looking for a good time but all the questions were different from mine.
I'm trying to find a string in an array where the strings within the array contain more than one word, for example:
var array = ["hola soy un string", " asd hola...
Good day.
I have this problem, I guess it's simple but I have not been able to solve it and I have one day in that, I have a program that accepts 10 numbers and enters them in a vector, but I need to know how many of these 10 start with th...
I have a list of my own Java objects, which need to be sorted by the property code of the object itself.
List<Calle> listaDeCalles;
Calle calle1 = new Calle();
calle1.setCodigo("A4");
...
listaDeCalles.add(calle1);
l...
I have the following code:
$msg = 'Hola :1: quetal??, :2:';
$emoticones = array(':1:',':2:',':3:');
$cntidademoticon = explode(' ', $msg);
foreach ($cntidademoticon as $string) {
echo '<br>'.$string.'<br>';
}
What I am looki...
Recently I found myself needing to extract all the values that are between two specified points of a chain, in this case everything that is inside the parentheses "()" .
What would be the most optimal way to do this?
string cadena =...
I have a problem when concatenating a string type variable with a float, I have the following:
float c1 = 0, c2 = 0, c3 = 0;
std::string best = "";
Then I use it in the following way:
best = "Imagen 1: " + c1;
best = "Imagen 2: " + c2;
be...
I need to enter a date, that you enter as string example: 21/10 / 2016-12: 04, and these data convert each one into a data type, (int, byte), to make validations and then enter them to a calendar