Questions tagged as 'java'

1
answer

How to request evaluation in the android application in java?

What is the best way to request android app evaluation? Eg if the user chooses to evaluate it is directed to make a review of the app in google play.     
asked by 21.12.2014 / 00:53
1
answer

Why is a FOR of the loop faster than 10 FOR together

I made a for alone count to 1000000 (sending 1 message to each loop ) and it took 14 seconds. public class main { public static void main(String[] args) throws InterruptedException { long init = System.currentTimeMillis();...
asked by 07.07.2015 / 03:46
2
answers

Verify that the string is null or empty

How do I check if my variable is empty or null? // Inserção Nome = tf_Nome.getText().toString(); Tipo = tf_Tipo.getText().toString(); Estoque = Integer.valueOf(tf_Estoque.getText().toString()); Preco = Double.valueOf(tf_Preco.getText(...
asked by 08.10.2014 / 18:46
3
answers

Working with OCR to recognize photos

I am currently working on my Course Completion Work and the subject involves OCR. I did some research and found the Tesseract , I also found libraries in Nuget for it (I'm using C #). The problem is that my work is about reading Car Plate, when...
asked by 28.08.2014 / 13:54
3
answers

How to remove spaces from a string in Java?

I'm having a question about how to remove spaces from a string in Java, by doing this through for . I'm making a diamond of letters, and I use a variable to create the space between the letters. A...
asked by 20.11.2017 / 21:04
3
answers

How to compile a .java file using the ubuntu terminal

I am a beginner and need to compile a .java file using the ubuntu terminal, how to proceed?     
asked by 16.09.2015 / 15:55
3
answers

How to put a loading image inside a JavaScript function?

I have this function below: function consultarOcorrencia(number, sequence){ form = document.forms[1]; form.number.value = number; form.sequencial.value = sequence; form.submit(); } After submit , a Java Action is ca...
asked by 10.12.2015 / 17:27
2
answers

How to export an HTML DIV to PDF by CSS?

Does anyone have any code that can export a DIV to PDF rendering all the CSS of this DIV? Should I do this in backEnd (Java) or frontEnd (JavaScript)? If anyone can help, I appreciate it!! EDIT: Thanks for the reply Gabriel Rodrigues, but thi...
asked by 24.03.2016 / 12:24
3
answers

How to set the equality comparison between two objects present in an ArrayList?

How can I set the equality comparison behavior between two objects whose class is defined by me that are stored in an object of type ArrayList? ColorName public class NomeCor { private String nome; public String obterNome() { return no...
asked by 03.04.2017 / 02:55
1
answer

Tool for drawing graphics in java

I wonder if you have any tools with IReport that I can use to make a chart that looks like this image. I already used JFreechart, but I could not make it look alike! The values of the bars must be at the bottom and the labels at the top accordin...
asked by 03.02.2015 / 19:14