All Questions

3
answers

The logic behind how PHP interprets the concatenation of string and numbers?

I was doing a question quiz for the PHP certification and there was a question that left me wondering: What will be the output of the following code snippet? <?php echo 'hello'. 1 + 2 . '34'; ?> In short: The output will be 234...
asked on 09.08.2017 / 15:02
3
answers

Since H = 1 + ½ +1/3 + ¼ + ... + 1 / N, make an algorithm to calculate H, where N is entered by the user

The program is only printing 1, it's as if it does not store the value of the variable h, can anyone help? Here is the code: public class MainUmSobreH { public static void main(String[] args) { double h = 0; int n = 4; for(int i=1;...
asked on 22.03.2018 / 21:34
2
answers

How to extract only numbers from a string?

I want to extract only the numbers of a CPF that is in a string in that format;    111.222.333-44 You only have to return:    11122233344     
asked on 15.07.2014 / 19:51
3
answers

how to increment letters in php? [duplicate]

I need to make a program in php that increments a letter in the name received ex: If the user types the letter B, it needs to transform it into a C-word.     
asked on 04.07.2017 / 14:23
3
answers

Is it possible to place objects in an ArrayList as soon as it is instantiated?

Doubt applies not only to ArrayList , but to any type of List . Is it possible to add objects to ArrayList soon after we instantiate it, and without having to use the add() method? How can this be done with arrays ?...
asked on 05.01.2018 / 01:16
3
answers

Configure .gitignore to not upload certain files

I'm developing a .Net project and would like to add some files not to upload to Github via .gitignore . I started to research about and saw some solutions, which I did not understand. So first, I can add all obj and bin files to my .git...
asked on 15.09.2017 / 22:03
3
answers

Check if URL contains number

I would like to check if the current URL contains numbers after the #. I do not need to know if it contains a specific number or a number of numbers, I just need to know if there is any number after #. EX: link 123 TRUE link...
asked on 29.10.2018 / 21:18
1
answer

Capture an element id with javascript click

In document there are three <div> , all with the onclick event that calls a function. By clicking on any of the three, I would like to capture the id of <div> clicked. How can I capture the id of this element...
asked on 15.06.2014 / 04:58
1
answer

Letter "m" in the version of Google Chrome for Windows [closed]

Does anyone know the meaning of the letter "m" at the end of the Google Chrome version? I looked for answers elsewhere, but I still could not get good information. Ex. 32.0.1700.102 m Thank you in advance for your attention.     
asked on 05.02.2014 / 02:31
4
answers

How to increase the space between text and underline in CSS?

When we are using text-decoration: underline we have an underscore applied to it. But my question is this: Is it possible to change the distance between the text and the underline? If yes, do you have any direct CSS property that we...
asked on 01.10.2018 / 19:55