All Questions

1
answer

Get values separated by spaces in Java

Could someone explain to me how I can get values separated by spaces in Java? For example, the user informs all at once the following values: 1 2 3 and I have to put each value in a variable.     
asked on 23.06.2015 / 16:11
3
answers

How to make the page load only after getJSON returns?

I'm retrieving a list in JSON using the jQuery.getJSON function: http=jQuery.getJSON(url); This code returns the object perfectly, but the request takes longer than the loading time of the page where I will insert the data. This way,...
asked on 11.09.2014 / 18:02
6
answers

How to extract a variable from within a function

Assuming I use the following function in .js ... and inside it has some variables. $(document).on("load", function(){ var Variavel1= "um"; var Variavel2= "dois"; var Variavel3= "tres"; var Variavel4= "quatro"; }) How do I us...
asked on 27.08.2015 / 19:23
7
answers

Removing the TitleBar from the android app

I'm starting on android, and I know very little! I'm developing slowly and with each change I save the apk and see it running on my cell phone. I noticed that there is a bar in the app with the name of the application! I would like to take this...
asked on 13.09.2015 / 21:59
2
answers

Post system - "Duplicate entry '0' for key 'PRIMARY"

I'm having a problem, I'm not really sure if it's in PHP or in the database. In a posting system using PHP, as soon as you submit a notice, ID (the primary key, which would be used like this: index.php?ID=0 ) is not changing, ie...
asked on 20.07.2015 / 15:07
2
answers

Find out how many days have passed from one date to another

In a java program, where the person inserts the day first, then the month, then the year, how do I know how many days have passed from that date inserted until a later date that will also be reported by the person? For example: First reported da...
asked on 23.04.2015 / 22:11
3
answers

How could I improve the code?

Is there any way to improve this code? lista = [0,0,0,0,0] acuNota = 0 x = 0 arq = open("notas","w") while x <= 4: lista[x]= float(input("Insira uma nota por favor!")) acuNota = acuNota + lista[x] print ("Criando arquivo e...
asked on 07.08.2015 / 15:36
4
answers

How to display 2 columns of 2 different tables in MySQL?

I have 2 tables with several columns. I would like you to display individual columns from more than one table at a time: tabela1 | tabela2 Nome | Apelido     
asked on 10.07.2015 / 19:35
2
answers

Can an int be equal to null?

After seeing a question about this, and many college colleagues with doubts attached to it, I decided to ask this question. Type int can be equal to null ?
asked on 24.05.2015 / 05:34
2
answers

Passing JS values to another HTML page

Is it possible for javascript to pass a variable whether it is global or not from an HTML page to another HTML? index.html recibaria.html Type, some way to save this value and move it to the other page without having to use php as a...
asked on 19.07.2015 / 17:58