Questions tagged as 'java'

1
answer

Drawing through a .txt

I am having a great question about how to pass the data from the read2File method to the variables hairX and hairY, in readingFile2D it runs through a file populating vx and vy with the values of .txt, can someone give me a light on how to do th...
asked by 05.03.2015 / 19:13
1
answer

.class file is not generated

I have already tested through the command prompt, and java and javac are installed. The problem is that the .class file is not created. By typing the directory I can find the folder, but not the file I want inside the folder (an error...
asked by 07.03.2015 / 15:16
3
answers

Waiting for remote audio extraction in Java

In my college project I have a small Java API that extracts audio from video files, where the URL of the video is passed and an MP3 file is returned, so far so good. I would like to keep a server performing the tasks of downloading the video...
asked by 07.07.2014 / 09:25
1
answer

Capture information and use when you need Java

I'm thinking of implementing a function that captures the logged in user, I still can not figure out how I can implement that function, I'd like to know what's usual and conducive for me to record the user's name and code while the software runs...
asked by 12.06.2015 / 15:40
2
answers

Object of a class in another Java class

Hello, Is it possible to have the object of the class that instantiated in the instantiated class? Eg: (Incorrect syntax, just a guess) public class Classe2 { // Metodos e vetores da classe } Instance of Class2 in Class1...
asked by 16.06.2015 / 01:13
1
answer

Java check, display the values registered in the MySQL database

I need help I'm doing a game in java and I need all the records and files and etc of the players in my table but I can not connect to the database much less check and display the values Ps: the Sun.java tutorial from DriverConnector did not h...
asked by 25.07.2014 / 14:13
1
answer

Problem with Getters and Setters of an Array

I'm having trouble accessing arrays in a singleton class Class Info public class Info { private static Info cinfo; private String[] first_name; private String[] last_name; private String[] nickname; public static Info getInstance() {...
asked by 19.07.2014 / 06:47
1
answer

Generation of objects with a given value within a defined distribution

I'm having a hard time creating percentage-related goals. What I want to do is a method that generates objects, all objects have only one attribute. I need 20% of the objects to be generated with this attribute having a value of 1 and the...
asked by 10.11.2014 / 23:00
1
answer

Array Out of Bounds reading Archive

I'm having a problem with my code, in my text file that I read the last line is blank, and so it should not be read, however I'm getting out of bounds . Sample file line:    Fernando & 60.9 & 166 Class main: public static void main(...
asked by 27.09.2014 / 02:41
1
answer

System.getProperty () on the server

In my code I use the System.getProperty ("user.name") to get the local user name. But I would like to use my application on a server. And by rotating it instead of returning what was previously returned locally, it is returning "root". I beli...
asked by 29.09.2014 / 20:54