Questions tagged as 'java'

1
answer

How to create a sequence in varchar in the Postgres database?

I have the following table in the Postgres database: CREATE TABLE customer ( userid character varying(30) NOT NULL, firstname character varying(30) NOT NULL, lastname character varying(30) NOT NULL, balance double precision NOT NULL,...
asked by 21.09.2015 / 20:56
2
answers

How do I specify that the builder type is the same as declared in the class?

I created an object that accepts a list of any type, like this: class Grid<T> { private Integer count; private Integer offset; private Integer limit; private List<T> list; private T tipo; public Grid() {...
asked by 23.09.2015 / 14:57
1
answer

Display Latin characters in a String

How do I display Latino characters as content for a web page? This content to be displayed is written in java, which should encode it correctly and return a String with values to be written to the server. I'm using the URLEncoder class...
asked by 30.09.2015 / 19:00
1
answer

How to convert a PDF file to TXT for TXT?

Is there any way in java to convert a PDF extension file to the TXT extension?     
asked by 16.11.2015 / 15:15
1
answer

Comparison between IDEs for java [closed]

In the next semester I will have to choose between two IDEs: NetBeans and Eclipse. I will need to develop desktop applications, and I have questions about: Graphical interface tools Hardware Requirements for Considerable Performance...
asked by 16.12.2014 / 18:29
2
answers

Function that returns the screen resolution

I need a Java function that returns the resolution of my Android device.     
asked by 05.02.2015 / 19:01
2
answers

JAX-RS Resource as Session Bean or CDI Managed Bean?

Today I ran into an interesting problem when trying to inject an EJB into a JAX-RS resource (in GlassFish 4.1, running the preinstalled version of Jersey). @Stateless public class MeuEJB implements MinhaInterface { // código } @Path("camin...
asked by 26.09.2014 / 23:09
1
answer

Notes for controllers and services

In Spring 3 there are annotations of class @Component , @Service , @Controller and @Repository . I know that @Component is the only one that can be used in all cases ( Controller , Service and Repository )....
asked by 11.12.2013 / 17:23
2
answers

Differences between System.out x System.err x System.in?

I did not find any discussion on this question here in the community so I decided to create this topic. There is a well-told question among beginners in the Java language when it comes to data manipulation. What is the difference between th...
asked by 24.04.2017 / 19:02
1
answer

Question about inserting a Javascript Object

Context I'm trying to persist in the database of a purchase, as well as all of its items. For this I am using a .jsp file. But I need to send the web page data. Purchasing data is easy. The problem is in the items of the same, I wanted...
asked by 05.02.2017 / 07:09