Questions tagged as 'java'

1
answer

Send .txt file from one pc to another using http service

I need to send a file from one PC to another over the network, only using link requests, so I do not have to download at the socket level, which gives a job. Is anyone able to clear me with some API or code sample? PS: I'm not lazy, unt...
asked by 31.01.2016 / 21:59
1
answer

Java String byte array with negative numbers

I'm having trouble discovering the encoding of a string. The entry is: São Paulo The original reading of this content is not for me, because the text goes through a wrapper from Lua to Java. On my side, I already tried the following "...
asked by 28.01.2016 / 21:12
3
answers

Clear contents of my netbeans console in java

Good morning, what command do I use in Java to clean the console of my netbeans? Well, I have a method that gets every x times printing some messages and I want it to be cleaning it from my console.     
asked by 16.04.2015 / 16:38
1
answer

em.createNativeQuery executes first than em.persist and now?

I'm developing an application with Hibernate + Spring mv. spring takes care of EntityManager dependency for my DAO, however I have the following problem. I persist an object called User After I run createNativeQuery with "insert into table...
asked by 08.04.2015 / 06:28
1
answer

Is there any AoT compiler for Java?

I've seen Excelsior Jet but it's private and paid for. If there is some free, how do I use it in windows? (I say this because there is a lot of stuff for linux)     
asked by 25.12.2015 / 12:30
1
answer

How to call the value of a variable?

How can I call the value of a variable of a function, into another function? I'm using jPanel , where I'm going to add text with: jTextArea.append("AREA = " + /*AQUI*/); Where it says HERE I wanted to put the value of a variable t...
asked by 27.12.2015 / 19:45
1
answer

Is the MediaPlayer.create () method called in the background?

I was reading the Android Media Playback documentation and I had a question. The documentation said that it is not advisable to call the mediaPlayer.prepare() method in the thread responsible for the UI, and would like to know if the M...
asked by 26.12.2015 / 15:53
1
answer

Retrieve String between characters

Hello, I'm developing a program that uses the java command line if the user types: send -all < message to be sent > He sends the message to everyone. if it is send -by < user > < message to be sent > it sends to a specific user. Thes...
asked by 09.05.2015 / 00:44
1
answer

Access values from an Object Matrix

I have a job where I should create a parking lot, at the very core of Java itself. So I have my class Carros : package estacionebemestacionamento; import javax.swing.*; import java.util.Date; import java.util.GregorianCalendar; import...
asked by 27.05.2015 / 20:32
2
answers

Problem with FileUpload

I had the opportunity to find an application ready on the internet as shown below: link But I'm new to the Java programmer, I tried to adapt the application my way, but I was not successful. Application has to add the name, value and...
asked by 27.05.2015 / 14:06