Questions tagged as 'java'

1
answer

Arraylist does not display correct [duplicate]

I have a super class Person with 2 sub classes (Student and Teacher). However I made another "List" class to create the ArrayList and later handle everything. At the time of using the List the data is accepted but when I try to read the con...
asked by 17.06.2017 / 20:37
1
answer

JSP with Servlet

I'm trying to make the servlet work as a controller I was following the caelum handout but I can not find the error o jsp aservlet@WebServlet(urlPatterns="/LoginInfo") public class LoginInfo extends HttpServlet { public LoginInfo(){...
asked by 21.06.2017 / 01:35
1
answer

"Changing" from Jframe to JIntertalFrame [closed]

I developed the first version of my entire project using Jframes , but in the upgrade I'm doing, I decided to change all of them to a JInternalFrame . I took a look on the internet and saw that it was possible by changing the referen...
asked by 18.08.2017 / 18:40
1
answer

Error in maven's POM.XML file

Error    cvc-complex-type.2.4.a: Invalid content was found starting with element 'dependency'. One of '{" link ": parent, " link    POM / 4.0.0 ": name," link ": description," link ": url, " link ": prerequisites,    " link ": issueMa...
asked by 25.07.2017 / 21:17
1
answer

How to put a method value inside a ListView

Good evening, I'm creating an app that generates random numbers for me, but I had an idea that makes it easier for the user .... When he wants to generate more than one block of random numbers, he chooses the amount he wants and sends generate,...
asked by 25.07.2017 / 03:09
2
answers

How to create an ID to be used in other classes

My application will do a get on the first screen of the user ID, how do I use it in other activities without being via intent ?     
asked by 24.07.2017 / 15:11
1
answer

Debug Eclipse - Classes with equal names in different projects

I was debugging here and came across a curious situation. I already fucked, but I could not succeed in finding out the problem. In a project, I have the class EntidadeDAO in project1 . In another project, in the same workspace, I have...
asked by 16.06.2017 / 18:54
1
answer

Problem trying to make HTTP request in Java

I have a problem and I would like you to help me solve it. I created a java application to consume a webservice I made in php. After much searching I was able to create a class capable of making http requests. The problem is that I'm encounterin...
asked by 15.06.2017 / 23:58
1
answer

How can I avoid repeating code?

I have a command that will need to perform several execuutes, but I have to put 1,2,3 ..., can you use the same name? btnadd1.setOnClickListener(new OnClickListener() { @Override public void onClick(View view) { /...
asked by 12.06.2017 / 22:23
2
answers

Non-fiscal thermal printer EPSON does not work in a shared way with USB and LPT

I'm creating a system in PHP and we're entering the printing phase with non-fiscal thermal printers. In principle I did not find Epson support for PHP printing and in searches I found the component mike42 / escpos-php . Using it I got networked...
asked by 10.06.2017 / 01:11