Questions tagged as 'java'

1
answer

How to merge columns h: column in JSF?

How can I merge columns or rows in JSF 2.0? Code<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http:/...
asked by 29.09.2017 / 17:01
2
answers

Variable resets whenever it passes to a method

I'm doing a simple program that inserts in the first possible position of a vector, a String . Here is the code I have: import java.util.Formatter; import java.util.Scanner; /** * * @author AmândioMagalhães(115 */ public class PL7...
asked by 06.11.2017 / 17:39
1
answer

Doubt Converter and CDI

I am testing a few hours trying to understand why this code here is not working and I am getting a NullPointerExcepetion . Can anyone notice something wrong? import javax.enterprise.context.RequestScoped; import javax.faces.appli...
asked by 07.11.2017 / 21:22
1
answer

Delete Last Row - Java

I'm reading a CSV using BufferedReader reading row by line converting the result to a .txt. At the end of my txt is generating a line break after the last item. I'm trying to find a way to remove last line break after the last item in the list....
asked by 05.10.2017 / 16:29
1
answer

Line break in JButton

I am developing a complete and beautiful periodic table for the course. But at the time of implementing jbutton it lets me put just a text, no space, line break and other phrases in other lines, as would a normal table. How do I break lines in t...
asked by 08.11.2017 / 13:45
1
answer

Problems creating app to consume mail services

I'm developing an application that has the objective of consulting prices and ordering times consuming the service of the Post Office. But I'm having trouble implementing the in-app service. How do I transfer data from the entries of the first a...
asked by 08.11.2017 / 22:47
1
answer

POST Request with OkHttp in JAVA

My question is, I'm using postman to simulate these requests, so when I choose there to show the code as it would be in java it shows this code below, but it's full of "strange characters" like this WebKitFormBoundary7MA4YWxkTrZu0gW and i...
asked by 02.10.2017 / 19:29
1
answer

Voting systems in an electronic ballot in Java

I am making an electronic ballot box that lists, lists and the user is able to vote for the candidate, I can already register and list the candidates, but how do I always count +1 in an attribute of each candidate in a ArrayList ?...
asked by 27.09.2017 / 18:20
1
answer

Returning different messages depending on the results of a [closed]

I have the following question: I have a function that can give me 4 different values. I would like to create a message (string) for each value of the function, so that the message was released with its respective value, for example: If the...
asked by 28.09.2017 / 20:28
1
answer

Save Image android

I know that there is probably an answer here on the site for my question, but when I looked I saw a lot of shapes and I was kind of lost. I wanted to create a hidden folder and have some ImageButton or something so I can select an imag...
asked by 28.10.2017 / 23:25