Questions tagged as 'java'

1
answer

Insert data from an array to mysql with php

I have two tables related to the principal and the detail. I have to register for example: Tabla 1 Idpersona persona 01 Juan Tabla 2 ID idpersona pedido 1 01 zcahs 2 01 bitcoin 3 01 Eterium To insert...
asked by 25.02.2018 / 13:33
1
answer

Problem when running my project on android with GameMaker

When I try to run my GameMake r project in android I get this error:    Saving project to: C: \ Users \ Anra \ Documents \ GameMakerStudio2 \ BattleRoyal \ BattleRoyal.yyp   "cmd" / c subst Z: "C: \ Users \ Anra \ AppData \ Roam...
asked by 23.02.2018 / 18:49
1
answer

flows streams with * .dat files

I'm making an application with swing and I need to link data that I enter for that application to a * .dat file. The fact is that I have three packages and each package with its * .java: Package 1: Class Vehicles with their attributes and met...
asked by 07.03.2018 / 19:18
1
answer

How to extract rows or columns from a string in Java?

I explain: I get a response string from a console of a switch. This is fine and it works. A command is executed that returns a table like this: SwitchPrueba#show port-security Secure Port MaxSecureAddr CurrentAddr SecurityViolation Secur...
asked by 07.03.2018 / 21:15
1
answer

How to print an array in a JtextField in Java Swing?

I want to print an array that generates it in the following form public String buscar(){ numero = (int) (Math.random() * 3) + 1; palabra = libreria[numero]; return palabra; } public void cambiar(){ for(int i = 0 ; i < palab...
asked by 26.02.2018 / 20:40
1
answer

Can I work with Java EE without using JSP?

My doubt is that if I can work javaEE without using JSP, because what I have read JSP is like a template where you specify html tags along with java code, I understand that we can work without JSP, because we directly we can implement the servle...
asked by 27.02.2018 / 06:51
3
answers

how to remove the time from the date in java?

I have a variable of type Date called dateElab and I use it in the value of a p: Calendar of primefaces <p:calendar id="mask" pattern="dd/MM/yyyy" mask="true" locale="es" value="#{Registro.datosVO.fechaElab}" So when I select...
asked by 14.02.2018 / 22:08
1
answer

Capture JTextField value and play .wav

[EDIT] Binder: I need to capture the value of the JTextField to play any song of this program. For the moment, when I click on the Play button, it plays the song that I put there, what I want to do is give the name of a song to the JTextField...
asked by 15.02.2018 / 01:01
1
answer

Illegal error when compiling an http server based on sun.com.net.http in java

the issue is as follows. When compiling a built-in server that I have under the sun.com.net library. * It gives me a very strange error, it always went well and I have not changed the code of which is the following: import java.io.IOException;...
asked by 15.02.2018 / 00:43
1
answer

extra large number rounds?

Good I'm wanting to perform an operation between a super large number "73789622.83" -0.0, the problem goes when ago this operation, the result gives me "7.378962283E7" as I could give a more friendly format     
asked by 11.02.2018 / 17:20