Questions tagged as 'java'

1
answer

display on the screen the contents of the position?

import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.PrintStream; import java.util.Scanner; public class Trabalho { public static void main(String[] arg...
asked by 20.11.2014 / 23:02
2
answers

Sockets in java

Implement a Java program that waits for network connections directed to port 13131 and, depending on information that will be transmitted through the above connection, perform movie exclusions. Since many programs will be able to simultaneous...
asked by 02.12.2014 / 00:43
1
answer

Validation JTextField

I'm trying to validate the txtServicoValor field that receives a type BigDecimal , follow my code, the validation is barring both the correct digits and the incorrect form, thank you for the help. MaskFormatter mask = new MaskForm...
asked by 01.12.2014 / 21:07
1
answer

Merge multiple ArrayList into a collection

It is possible to join 3 ArrayList into a collection and then send it as datasource to a report. Or do you have another way to do it? I have 3 ArrayList of 3 objects, I wanted the information from these lists all together in one report. Me...
asked by 15.04.2015 / 13:20
1
answer

Java - random number buttons

I have a new question (which is a continuation of my previous question ). I have a button ( JButton ) with the name "shuffle" that is already implemented. I wanted to do the following: when this button is pressed, it shuffles the numbers...
asked by 17.04.2015 / 13:27
1
answer

Returning null when trying to show an image in p: graphicfight of Primefaces

I'm having an error trying to show a photo in the graphicImage component of Primefaces. The photo may be in Base64 or Bytes. I'm using Primefaces 5.0 and JSF 2.2. .xhtml <p:dataTable id="tableFotos" var="foto" value="#{meuBean.lis...
asked by 14.01.2015 / 02:32
2
answers

Hide keyboard with Fragment

I'm doing a mobile application that has screens in fragment with Drawer, and they have EditText , but I'm having a problem that when I click on EditText and then click off, or click on menu does not disappear, and it is difficult...
asked by 07.11.2014 / 19:19
1
answer

How to pick up words and save in a string?

How do I save words I get in a new string ? gravarArq.println(token.getLexeme() + "_" + token.getPOSTag() + "_" + token.getFeatures()); How do I get what comes from token.getPOSTag() and save all words that come from it into a new...
asked by 06.11.2014 / 23:15
1
answer

How to make an array that increases if the user wishes?

I have a problem in a programming project. The program asks for the following: This is a Question Database (for example, an ENEM, or Vestibular). I need to do some commands like add students, teachers, tell who you are, and if you do no...
asked by 09.11.2014 / 15:08
1
answer

SQL Server and JSP connection error

I'm trying to connect to SQL Server using JSP. But the connection is not made. Connection Class: package DAO; import java.sql.*; public class Conexao { public static Connection conectar() { try { Class.forName("net.sourceforge.jtds.j...
asked by 08.11.2014 / 18:53