Questions tagged as 'java'

1
answer

Castings on derived class objects

I have a question about the solution to the following exercise; In the main class, when I call the force () or telekinesis () methods (which are in the derived classes), I have to do several castings on a vector that declares the type of the par...
asked by 23.08.2017 / 01:18
2
answers

How to show the data of a user logged on java web

Hello, I need to show the data of the logged in user. I have the following in the servlet: protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String user...
asked by 15.07.2017 / 03:51
1
answer

error when reading rxtx serial port

Perform a reading of data with serial port using the library rxtx the code works well I can read and print the data but when printing the result of the reading it does not show it to me in this way 20.60 if not character by character and...
asked by 03.08.2017 / 17:14
2
answers

Error trying to delete a record in the database from Java

Hello everyone I am new to programming, I have a problem, my system connects to mysql and uploads data to the database, but I miss an error when trying to delete, I hope you can help me because I do not I see the error. private void eli...
asked by 10.07.2017 / 14:31
1
answer

BufferedReader.readLine () returns null as a result

I am writing a method to count the number of lines in a text document in Java. public int numeroLineas(FileReader re) throws IOException { String str; BufferedReader br = new BufferedReader(re); Vector<String> v = new Vecto...
asked by 02.08.2017 / 16:57
1
answer

error CreateProcess error = 193,% 1 is not a valid Win32 application on Android Dtudio

In Android Studio, when creating a new project, the gradle is activated, and after a few seconds the following message appears:    Error CreateProcess error = 193,% 1 is not a valid Win32 application I have looked for information to try t...
asked by 04.07.2017 / 01:07
1
answer

Validate entry in a JTable (Java)

I have a problem with JTable: I have a table with the columns CODE, DESCRIPTION, QUANTITY, PRICE, CATALOG, and NUMBER_PAGE, and I need the code, quantity and price columns to only accept numbers. I have tried the events and I can not solve. T...
asked by 30.06.2017 / 16:50
1
answer

How to stop any audio track in JAVA

again bothered with my doubts, I have the following button that plays an audio file from a file in C:, but I need that with another button to be able to stop this audio track. How can I do it ?, in advance I appreciate any help suggestion or com...
asked by 01.07.2017 / 15:31
2
answers

Problems with web View

In an android app, I have used a webView for the user to enter a "player" that consists of showing content from social networks in a presentation manner. However, it seems that this page is too "heavy" because it does not load well at all. Is th...
asked by 30.06.2017 / 12:59
1
answer

Is there a way to implement an ORM repository with a Rest service as datasource?

I wanted to make several applications / modules that communicate through webservices Rest, I like to use the dao pattern and I was looking for if jpa or hibernate or spring data (in general an ORM), they allowed to do this kind of thing, that is...
asked by 01.07.2017 / 00:09