Questions tagged as 'if'

1
answer

Condition If in sight, laravel

Good, I have a list of students in a view in which I can place observations. My query is how to create an "if" to show me the "add observation" only if you do not have any in the database and in case you already have an observation do not show t...
asked by 08.03.2017 / 22:54
1
answer

Does Spinner OnItemSelectedListener not work?

As such, it does run, but the if and else if statements do not run and I can not find a solution to debug public class MainActivity extends AppCompatActivity implements AdapterView.OnItemSelectedListener { boolean IntersticialBoolean = true;...
asked by 03.12.2017 / 05:43
1
answer

Why do I get an error in the switch / case? Java

It is requested to develop the algorithm that allows to analyze the behavior of the sales of the Ice cream shop "La dulzura" For this, it is requested to enter a sample of 5 sales during a period of time. You must enter: a. Ice cream si...
asked by 05.10.2018 / 23:11
2
answers

how do I get out of the if and return to the beginning of the loop?

enters the while loop, if I enter the correct value which in this case is 3, leaves the loop, but if not, I enter the if, and I do not leave there even if I enter the 3 again, how do I get out of the if and return to the beginning of the while?...
asked by 22.07.2017 / 06:17
1
answer

How can I solve this program? Java Cycle For

It is necessary to develop a program that allows managing the information to organize the fifth edition of a marathon. It is known that: For organizational matters, a maximum amount of 15,000 is allowed (but I put 5 in the program to be able...
asked by 04.10.2018 / 18:21
2
answers

Why does not the if function?

Enter the result of 4 matches played between team A and team B. Determine and report the number of matches won by each and the winner of more matches if they did not get the same results. This time my problem is that if I enter the same numbe...
asked by 27.08.2018 / 02:20
2
answers

Combine If in PHP with Time

I am modifying a reservation system and I want it not to be reserved for more than 24 or 48 hours in advance. Currently when it is Monday, with the following code I can make reservations for the whole week: Resuelto Right now the only thing...
asked by 02.09.2018 / 03:51
2
answers

Change a div image by hovering over a word

My idea is to create a single div that contains an image, but that this image changes according to the word that is indicated when the mouse pauses for this word. That is to say when you pass the mouse in the word apple appear in the div an appl...
asked by 30.10.2018 / 16:34
1
answer

Regarding the sentence "compareTo"

I have a question about the compareTo statement. If I have: if(x.compareTo(y)==0) I understand that I am asking if the value of x is equal to and . But if I want to ask if they are different? Should I place a denial forward? if(!(...
asked by 12.06.2018 / 20:06
1
answer

Else if statement, why it does not work (Number (! numberUser)

Simple question, because in this section = > Number (! username) DO NOT invalidate 0 and tell me: 'Please enter a valid numeric value' I know that if I pass the 0 to the prompt it returns a string but for that I have done Number (!...
asked by 13.12.2017 / 22:03