Questions tagged as 'java'

0
answers

create empty JDialog when changing the event

I am creating a small application in java that calculates bets automatically. When clicking on the results button, a JDialog is automatically created that shows on a TextArea the bet that has been created automatically and another that is also c...
asked by 22.03.2018 / 22:51
1
answer

Problem when capturing SocketException

Hi, I am trying to implement a group chat in Java. The chat is fully functional, (the basics). My intention is to capture when a user disconnects to be able to delete their name from the arrayList of the users of the server, but I can not iden...
asked by 04.12.2017 / 21:45
1
answer

java.net.SocketException: Permission in Android Studio with Visual Studio 2017 Web Service

Use KSOAP2 library in Android Studio, SQL SERVER with a table called "Clients" and the ASP.NET web service in Visual Studio 2017. When I call "TaskWSCconsult" and "TaskWSnviar" I capture the following exceptions: 11-05 07:14:56.592 12155-12...
asked by 05.11.2017 / 08:39
2
answers

Search for repeated files within an ArrayList in java

My question is this, is it possible to search for files with the same name or similar within an ArrayList? For example: I have an arraylist loaded with 5 mp3 files (in this case they are music files) but it is applicable to any type of existin...
asked by 05.11.2017 / 02:49
1
answer

How to extract data from multiple cells in a Jtable

I am trying to extract several data from several cells selected from a Jtable. The selection is free. I have only managed to extract a data every time I click on a cell. I have used the following commands from Jtable: MyTable.getSelectedRow an...
asked by 27.10.2017 / 23:54
1
answer

Doubt variable counter in Array

Good afternoon, as a good newbie in Java, a doubt has arisen at the root of an exercise. I have the class "Person" that should have a variable that will increase by 1 with each instance of its class, but I do not know how to do it efficiently, (...
asked by 10.10.2017 / 17:32
0
answers

How to get the list of facebook friends with the Grap API from android?

I'm trying once to login to facebook from my application on android to get a list of my friends, as well as some data, I'm guiding me for this link but at the time of consultation the json that returns me it turns out to be empty, this is the...
asked by 20.11.2017 / 15:11
1
answer

Error implementing PackageInstallerActivity for some versions of Android 6.0

I have the following code that is executed when the user accepts the update of the application within it. I already provide code for compatibility with versions 6.0 + and versions 6.0 -, the problem arises that some devices accept the code ex...
asked by 09.10.2017 / 17:39
2
answers

Compile and execute Java project from terminal

I am trying to compile and run a Java project from the Windows terminal, I have a folder. \ lib with several .jar To compile I use the following command: javac -encoding UTF-8 -d. \ bin -cp. \ src. \ src \ game \ Party.java Compile me...
asked by 25.10.2017 / 22:19
1
answer

Error loading the file

I'm working with files, but I get two errors    For input string: "Eduardo" java.lang.NumberFormatException: For input   string: "Eduardo" before that I was throwing a NoSuchElementException error but I already solved it This is my cod...
asked by 03.10.2017 / 01:22