Questions tagged as 'java'

2
answers

What is the best way to query SQL Server database using a list entry?

I have a question as to how best to approach the following problem: I need to query records in a SQL Server table using a list of serial numbers. I know the IN command, but it does not answer because it is limited to receiving a maximum of 2100...
asked by 13.01.2015 / 13:35
1
answer

Java - String - Comparison [duplicate]

I'm not understanding a simple comparison I'm making, but it's not running as I think it should. Situation I ask the user to enter the name of the person, and capture with String nome = scan.next(); And sending to this function...
asked by 28.06.2015 / 00:30
2
answers

Edit object stored in an ArrayList

I have class Contato : public class Contato { private String nome; private String email; private int telefone; /*getters e setter*/ } And the class Agenda that has a ArrayList called "contacts" where I wi...
asked by 26.06.2015 / 22:54
1
answer

Maven not finding java

I'm trying to run maven and it's returning me the following error: /opt/apache-maven-3.3.3/bin/mvn: 227: exec: /opt/jdk1.7.0_79/bin/java: not found I checked the paths and they are ok, does anyone know the reason for the problem? My env...
asked by 29.06.2015 / 20:13
1
answer

How to use for each in arrays array?

Having the arrays array: int matriz[][] = new int[1][1] How do I use the for each (for (int count: array)) to traverse its rows and columns?     
asked by 20.05.2015 / 05:19
1
answer

Virtual Republic Site out of the air [closed]

Already a few days ago the Republica Virtual site that served as a base for many people to conduct a CEP consultation and receive the data with ease, it's out of breath, I do not know if anyone knows the reason for being out but my question is...
asked by 05.05.2015 / 20:07
1
answer

How to save data temporarily with good practices?

I have only one page where all the scripts are, when a user clicks on a certain data, it would redirect it to a specific script and I had to save this data (which he clicked) to be able to put in a case he wanted to edit this data later. To d...
asked by 24.02.2015 / 12:43
1
answer

Implement screens in list fragment

I'm working on my first project with ListFragment looking on the internet for tutorials and even the online course I'm doing. When the onListItemClick is created, it sends Toast to the screen, but I want it to open a new...
asked by 26.02.2015 / 22:20
1
answer

Stop the loop when it finds a result

public Objeto busca(String nome){ for(Objeto id : MinhaLista){ if(id.getNome().equals(nome)){ return null; } else { return id; } } } This is the code, i...
asked by 27.11.2014 / 02:37
1
answer

Convert html page to jsf

I've downloaded a template that will be the index of my project, so it's all set up with web.xhtml , I'm already running other jsf projects, however I'm starting another project and I want to put a template that I've taken in html5 to run...
asked by 04.12.2014 / 04:49