All Questions

3
answers

Assign value to the variable in the method declaration

Is it possible to assign the default value of a variable within the method declaration, the same as in PHP ? If so, how? Ex: I want the test function, when called, if no parameter is passed, has the value of b false and true...
asked on 19.10.2016 / 15:45
1
answer

How is correct when declaring a variable that is a pointer?

I see that some people do int* variavel; And there are those who do int *variavel; Which one is correct?     
asked on 24.01.2017 / 11:41
4
answers

Print variable within a repeat structure

You are not recognizing the variable soma because it is inside the loop . What do I do to fix this? public static void main(String[] args) { int tipo; int restante = 0; int bim = 4; //double soma= 0; double[] not...
asked on 29.08.2018 / 15:47
2
answers

How to change the PHP DateTime JSON serialization format?

In PHP, when I use a json_encode in an object of type DateTime , it has the following result: $date = new DateTime(); echo json_encode(compact('date'), JSON_PRETTY_PRINT); Output: { "date": { "date": "2018-08-09...
asked on 09.08.2018 / 19:01
2
answers

How does C # run on other platforms?

As a complement to this question , run C # in a where the .NET Framework is native, it is standard to run the application executable. As far as I know, C # depends on the .NET Framework to be compiled and run , and thus have all code functio...
asked on 17.07.2018 / 19:36
3
answers

Convert string with HTML tags to an array

Consider the following string: var texto = 'Esse é um texto de <span class="red"> teste </span>'; I need to transform the string into an array separating by space, that is: var palavras = texto.split(" "); The problem is th...
asked on 28.08.2018 / 01:15
1
answer

How to do the Dunnett test in R?

Assuming that I performed the ANOVA test on my data and gave significantly different, I would like to perform the Dunnett test precisely to compare my treatments with the control group. Should I use some specific package or in the default R's alr...
asked on 24.06.2018 / 16:28
1
answer

How to convert a list of strings to a list of integers

I have TXT file, and it looks like this: 01 02 03; 01 02 04; 01 03 04; 02 03 04; Well, I load this file into ArrayList<String> as it is in the code below. How do I pass it to ArrayList<Integer> , to manipulate its...
asked on 24.08.2018 / 19:51
2
answers

how to automatically fill in an input?

As the code with several textfields shows, I want to make visible just dataEntrada, dataSaida and KM and from these 3 fill in the others that will be invisible, the amount to be paid will be displayed in an alert when you click on simulate. Th...
asked on 03.06.2018 / 01:27
1
answer

How to identify if an element was removed from the page in real time

How to identify with JavaScript, if the user removed a div from the page through the element inspector, ie if the id of the element no longer exists on the page, perform an action. Simple example: If% is removed, <...
asked on 18.08.2018 / 16:45