Questions tagged as 'java'

2
answers

Client Rest in Java receiving a LocalDate

I'm doing a test client in java. My workbook class looks like this: public class Livro { private Long id; private String nome; @JsonFormat(shape = JsonFormat.Shape.STRING,pattern="dd/MM/yyyy") private LocalDate publicacao;...
asked by 06.03.2017 / 00:28
1
answer

Pick up an Image from the gallery and move to a folder

I am using the following code to get the path of an image from the system: { Intent intent = new Intent(Intent.ACTION_PICK); intent.setType("image/*"); startActivityForResult(intent, IMAGEM_INTERNA);...
asked by 02.03.2017 / 17:56
1
answer

Android - How to enable and disable the wifi

I have a java app with two buttons. How to do when to press the first the wifi to be activated, and when to press the second it to be disabled? Thank you.     
asked by 04.09.2016 / 20:46
1
answer

Query Entity without its Associations

I'm creating an application with JAVA SE + HIBERNATE . I'm having a "problem" in making a query to a single Entity. So I would like to query the entity ( TABELA ) without the relational mapping @One-to-One,@One-to-Many, @Ma...
asked by 05.09.2016 / 21:23
1
answer

Porting Java code to C ++ or Python [closed]

I'm working on a project that was originally written in Java. I want to learn more about math and logic behind the code, and I had the idea of porting the code to another language. I thought of C ++ and Python. Which one has more simila...
asked by 31.08.2016 / 21:58
1
answer

Convert java code to pascal

I need to convert the following java code to Pascal / Firemonkey: The main questions are: How to extract each pixel in firemonkey? How does this code work: slice |= (byte) ((v ? 1 : 0) << (7 -b)); Follow the complete...
asked by 14.09.2016 / 14:32
1
answer

Problem in OnClick, I can not pass the Array information to a text view

I'm having problems to inflate a list with information from the bank, I want to get the information from the user and be in a list, but only with a data type as a name, but it presents the following error: Error message: FATAL EXCEPTION: ma...
asked by 13.09.2016 / 02:43
1
answer

Java - academic system [duplicate]

I have the program below in java. However, when I execute option 1 or 2, Direct appears Name and Age. Should pull the name and only after I type the name appear age. Can anyone tell me if some code is missing? package SistemaAcademico; impor...
asked by 23.08.2016 / 00:58
1
answer

Is it possible to generate a random number between two numbers in Java? [duplicate]

How do you generate a random number in the specified java between min and max? Because with the nextInt function of the Random class you can only specify the max.     
asked by 30.09.2016 / 00:37
2
answers

Equivalent to C # Form.ShowDialog () in Java

I'm starting now in Java, there's a feature I use a lot in C # which is NomeDaTela.ShowDialog(); . I wanted to know a similar code that does the same thing in Java.     
asked by 16.01.2017 / 16:28