Excuse me, I'm new to java , I've looked for answers on the internet , but everywhere they speak in a very complicated language, could someone explain it so that my granny could understand it?
Thanks.
Excuse me, I'm new to java , I've looked for answers on the internet , but everywhere they speak in a very complicated language, could someone explain it so that my granny could understand it?
Thanks.
At the suggestion of the PaperBirdMaster user, I have decided to ask the question indicated in the title of this post.
Basically, as I mentioned to said user, I have seen in different SO answers that in C++ it is not necessary to include the instruction return 0;
in the function main
since the compiler is capable of including said instruction on its own. How much truth is there in the above statement?
Personally, I prefer to include the return 0;
because it goes along the lines of using a return
within a function, since by definition functions return a value. It would be different if main
he declared it as void main()
, which is not standard, but at least it is valid in Visual Studio, for example, and there he would see the need to include some kind of return
.
On the other hand, related to all of the above, how valid is it to use another type of return
like, for example, return EXIT_SUCCESS;
, which can be found in one of the books on C++ by Luis Joyanes.
Thanks in advance for your responses and/or comments.
Sometimes I find that I need to validate if a variable has an array or object as its structure, in such a way that it can take a corresponding action depending on the type of value stored in the variable.
What would be recommended to distinguish between an array and an object?
Speaking of an object that is not the product of an instantiated function.
if (isObject(valor)) {
/* Código */
} else {
/* Código */
}
I have a list for validated mobile numbers that I have to display in the same way:
The desired format is:+34 666 111 222
String telefonos =
"666444555,
666-444-555,
666 44 45 55,
666-44-45-55,
+34666555444,
0034666555444";
Pattern pattern = Pattern.compile(""); // aqui es donde me clavo.
Matcher matcher = pattern.matcher(telefonos);
while (matcher.find())
System.out.println(matcher.group());
Expected output:
+34 666 444 555
+34 666 444 555
+34 666 444 555
+34 666 444 555
+34 666 555 444
+34 666 555 444
A co-worker created a branch
call feature/validateEmail
. I want to do pull
or checkout
of that branch
on my machine so I can work on it but not wait for it to do merge
a develop
or a master
.
I have tried without success:
git checkout feature/validateEmail
git checkout validateEmail
git pull feature/validateEmail
git pull validateEmail
And since I use the plugin Ioh my zsh
also tried:
gco feature/validateEmail
gco validateEmail
branch
I can see it with :
gba
(by plugin)git branch -a
How can I pull or checkout the remote repository on my machine?