Questions tagged as 'java'

1
answer

Problems using JSTL

I'm implementing a WEB application with J2EE, but I'm not able to list the data coming from the ServletListCourses to the Liste.Jsp page that uses JSTL. public class ServletListarCursos extends HttpServlet { private static final long...
asked by 11.02.2015 / 11:31
3
answers

Map java.time properties with Hibernate and / or JPA

Is there any way to map properties like java.time.LocalDate and / or java.time.Instant through JPA and / or Hibernate?     
asked by 05.07.2014 / 23:28
1
answer

How to replace characters in a String?

I have a small problem. My application receives a numeric String from the server representing a value. But the server sends, for example "100.00" and I need to put a comma in place of that point. 100.00 = > 100,00...
asked by 27.09.2014 / 22:13
1
answer

Difference between calling the fragment call and a new instance

I'm working on a college project where I made an application that uses fragments. I've always been accustomed to creating a fragment in the following way: // imports ... public class LoginFragment extends Fragment { public LoginFragment(...
asked by 17.11.2014 / 19:22
1
answer

ListView too slow on scrollbar

I have a problem that I do not know how to solve, I have a custom% with_configure with images and the scroll bar keeps crashing even with the loaded list. The list is slow to roll. Adapter: public class AdapterSegmento extends BaseAdapter {...
asked by 02.12.2014 / 05:06
3
answers

Difference of StringBuffer.equals and String.equals in Java

The behavior of method equals of class StringBuffer of Java is different from equals of class String ? If yes, how would I overwrite it?     
asked by 06.11.2014 / 05:18
3
answers

Button with text box high in Android API 14

We see that in the launch of Android 5.0 Lolipop came Material Design that by yes a lot has changed on Android and along with that, the component Dialogs that comes with the button by default with high box text as shown below in the image:...
asked by 23.08.2016 / 16:05
2
answers

Compare words from a text with a list of Enum's

I have an Enum that contains a list of values. I have a method where I get a text as a parameter. This method, besides going through Enum, breaks the text by words. The main function of the method is to see if there is any word in the text that...
asked by 16.11.2016 / 15:48
1
answer

Java program that comes with JRE

I want to create a program in Java, but you do not need to have Java installed on your computer. How do I put a JRE next to my program with just the required classes? An example: I created a program and only used the System class and the clas...
asked by 25.08.2014 / 02:36
1
answer

Problem in Context and SharedPreferences in android with service

I'm trying to create a service on android, it's ready though in running the application for. If I comment on the ctx and prefs variables, it works but I need them, can you tell me if there is something wrong that I did not see? I've been for a l...
asked by 15.08.2014 / 22:09