Questions tagged as 'java'

2
answers

Problems using camera, generate, edit and save image [duplicate]

I'm trying to create an app, and part of it is using the camera to take a picture, which will automatically be shortened and saved in folders separated by year / month / imgHora.jpg. For older versions the code worked, but for newer version...
asked by 28.10.2018 / 22:31
1
answer

Create data validation and page sequence

I'm starting in Java and want to make a screen where the person signs the login and the password, the system stores the data and then in a new window is asked to enter the user and password, I did the part of validation and registration of the d...
asked by 28.08.2014 / 15:09
2
answers

Java Timestamp and MySQL Timestamp

Problem: I am storing a timestamp in MYSQL, but when I redeem this timestamp I am losing the thousandths. Java timestamp with thousandths. MYSQLtimestampwithoutthousandths. Why does this occur? How to solve this? I need the return...
asked by 19.08.2014 / 16:15
1
answer

Using a ThreadPool or just initializing a new Thread?

Let's say that the software all the time creates a new Runnable to perform a basic function every cycle, at the end of a day of execution I would have a few hundred Threads of this function created and finalized correctly by the JVM. W...
asked by 04.04.2018 / 14:52
1
answer

Two pages using the same Servlet

I have my main page (index.jsp) use the servlet for some small things. Then redirect to the final page.jsp. This page will use the servlet as well, since I need the user to choose the functions (buttons) he wants to use. My question is: Can I u...
asked by 03.11.2014 / 22:17
1
answer

Open a directory

I'm developing an application that when I click on a button it exports all my database to an excel file, this file is inside a folder created by the application itself, this created folder is in the internal memory of the device. My question is,...
asked by 06.06.2018 / 13:14
1
answer

IllegalArgumentException when reopening jInternalFrame multiple times

I have an application that is validating when the JInternalFrame window is open or closed, but if the window is opened and closed a few times in a row, the console displays an error and does not open JInternalFrame again. > Wind...
asked by 22.05.2018 / 22:58
1
answer

JSON return conversion error for JAVA Class

I have a java class public class PRODUTO extends SugarRecord implements Parcelable { private float id_pro; public PRODUTO(float id_pro){ this.id_pro = id_pro; } public float getId_pro() { return id_pro; } public void s...
asked by 16.05.2018 / 07:11
1
answer

Save multi-value key in Properties file

I have a .properties file where I load the name of the tests that will be deleted from my application. This file needs to have the same name as the "variables" since they all mean the same thing (excluded tests), the problem is that my co...
asked by 13.11.2017 / 17:04
1
answer

How to add elements of two Streams in java?

Hello, I would like to do a function that sums the elements of two Streams and returns a Stream with the results, in a "functional" way without using third-party libraries. For example: BiFunction<Stream,Stream,Stream> mySoma = (s1,s2) -&...
asked by 21.04.2018 / 10:51