Questions tagged as 'java'

1
answer

Chat TCP java sockets

I'm trying to make a chat-type program. I have 2 clients and 1 server. My problem is that if I write messages from chat 1 to chat 2 I do not have problems but if I send messages from chat 2 to chat 1 nothing comes out, but if it is sent to the s...
asked by 18.01.2018 / 19:39
1
answer

Paginacion in RecyclerView Android Java

I find the following RecyclerView RecyclerView lstMovsWallet = (RecyclerView) findViewById(R.id.lstMovsWallet); lstMovsWallet.setLayoutManager(new LinearLayoutManager(MovsMobileWallet.this)); AdapterCobrosP...
asked by 18.01.2018 / 14:05
2
answers

Put conditions on the getter and setter in a class

I am learning to create classes and I do not understand how to do so so that when I print the objects of the Client class, they only appear: of age and under 120 Emails containing the char "@" As it is now I see the data as you enter th...
asked by 09.03.2018 / 21:21
2
answers

how to pick up a list of properties

Good morning to everyone, I need to collect data from a list that I have in a .properties. example: numbers = 124234,12342343,12234234,234234,234234,23423 and collect it in java to be able to compare it with the number that has been ask...
asked by 18.01.2018 / 10:31
3
answers

Create a website with related search [closed]

Good morning, everyone. I want to know what I would need to create a website that stores the current and updated prices of different known web pages. I'm doing a project and I need help.     
asked by 03.02.2018 / 10:15
2
answers

How to extract data from a JSON from Java

Hi, I'm trying to use the google API Snapp to road, the problem is that it returns me a JSON and I do not know how to extract latitude and longitude since I want to store them in a database, I'm using java, I would like to the help this is the J...
asked by 30.12.2017 / 23:00
1
answer

POO in Java - Create instance in child class from parent class

Suppose the class ParentForm that will be used as a means to formulate the basis of the rest of the classes of an application, and suppose a class called ChildClass that will inherit from the parent class. In ClasePadre we have a static metho...
asked by 02.01.2018 / 08:37
2
answers

Detect change in a CheckBox within a TableView

I have an observable list whose elements are shown in a table, one of whose columns is a CheckBox that can be modified by the user by clicking on them with the mouse. I want that when these CheckBox change I am notified to store th...
asked by 12.01.2018 / 14:51
1
answer

Constructor with POO constants. Java

I have a question about a little code I've seen. In an exercise, creating an Appliances class, you are asked to create a series of attributes (price, color, consumption, weight) and that by default, the color will be white, the energy consumptio...
asked by 13.01.2018 / 19:05
1
answer

Compare two cars (Arrays) by entering their identifiers by scanner

How could I get the car with the highest number of kilometers asking the user to enter two identifiers of the cars? public class Coches { int identificador; int kilometros; public Coches(){} public Coches(int identificador,...
asked by 13.01.2018 / 12:40