Questions tagged as 'java'

2
answers

Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 With WebService JAX-RS and Android Retrofit

I'm studying WebService and consumption on Android with Retrofit2. I've done tests with public APIs like ViaCEP and FIPE and I can use the retrofit quietly, very easy but when I set up my own webservice using JAX-RS with Jersey I have problem...
asked by 16.01.2017 / 18:59
1
answer

Error trying to change JFrame icon

I'm using NetBeans, however I want to change the default icon for my application. But, I came across this error. Followthecode:importjava.awt.Toolkit;/****@authorrenato.lazaro*/publicclassIconJFrameextendsjavax.swing.JFrame{/***Createsnewfor...
asked by 21.06.2016 / 15:07
2
answers

Problem pulling server list on Android

Oops, I am pulling a list from the server and populating a RecyclerView with this list. But when the list is empty, I want a message like: "There are no items registered for this product yet." But not a Toast , but a fixed message i...
asked by 02.09.2016 / 01:10
1
answer

How to read page by page of a PDF with PDFBox

Good afternoon. I wonder if anyone can help me. I need to extract data from a PDF file, however I need to read page by page of the file, if anyone can help me thank you. public static void main(String args[]) { PDFTextStripper pdfStripp...
asked by 23.06.2016 / 21:55
1
answer

Android error compiling missing lib - The system can not find the file specified

Good night, I had added some libs to my android application, but then I changed my mind and removed the same ones, but when I compile the code is giving the following error    Error: Execution failed for task: app: compileDebugJavaWithJavac....
asked by 25.06.2016 / 09:00
1
answer

Working with List and Objects in Java

I have a java class called Library. with attributes: name, city, number of employees: public class Biblioteca{ String nome; String cidade; int qtdFuncionarios; //depois getters e setters e construtor... } And a Book class, cont...
asked by 22.06.2016 / 20:15
1
answer

Java: Problems with wait () and notify ()

Good evening, I'm doing a java project where I make connections between the client and a server. This client sends messages to another recipient. It is up to the Server to handle this message, forwarding it to the right Client. I am an error:...
asked by 05.12.2015 / 22:50
1
answer

Display tree-like directories

I have this code here in JAVA where I need to list the folders and subfolders in tree format, but I can not get it. Any help? package Control; import java.awt.Desktop; import java.io.*; import java.util.ArrayList; import java.util.List; publ...
asked by 03.12.2015 / 23:39
2
answers

How to limit the number of houses before the comma in a regular expression?

I'm using this expression to not let the user type a dot before any number and limiting 2 boxes after the comma, but I also needed to limit 5 boxes before the comma, the way I am I can insert as many numbers as I can before the comma . Does anyo...
asked by 04.12.2015 / 18:02
1
answer

Spring Loaded is not working

I have a Spring 3.1.4 project I'm setting the spring-loaded below the image below: Tomcat runs right but spring-loaded is not working any changes I have to raise tomcat again.     
asked by 22.03.2016 / 17:31