Questions tagged as 'java'

1
answer

Problem with listing an ArrayList in JAVA JSP

I have the following problem: I'm doing a shopping cart, a task, I'm a novice in this Java Server Pages, and I have a Product class where I have a method that returns a List and invoke that method from a JSP called a catalog, see here: //Me...
asked by 04.04.2018 / 22:28
2
answers

Pass data from Adapter to an Android Studio Activity

Hello my problem is that I am developing an android app where I have an Activity and a RecyclerView.Adapter, and I want to send a serializable parameter from the adapter to the activity and receive it. I tried to do it with intent, it does not w...
asked by 01.04.2018 / 02:23
1
answer

I have problems with android study when entering variables and other

hello friends, how could you tell me why you mark error in these lines of code my android studio, the lines of code that appear in bold or with double asterisk are my mistakes, someone to help me please is urgent package com.example.danhermes....
asked by 31.03.2018 / 18:15
0
answers

QuickSort: I do not know why it enters the cycle, if the condition is not met

I'm trying out the QuickSort and making it trace to understand how it works, but I found something weird: public static void QuickSort(Comparable[] array){ int n = array.length; QuickSort(array, 0, n - 1); } private static void QuickSo...
asked by 31.03.2018 / 16:57
2
answers

How can I add a name (String) within a predefined array in java?

Load an array with 3 predefined fruit names String fruits [] = {"apple", "orange", "melon"}; 2.Add a name to the list by keyboard.     
asked by 01.04.2018 / 02:26
1
answer

I would like to know how to go from one frame to another, executing the main of the other frame?

I would like to know how I go from one Jframe to another, executing the main of the other Jframe? I have an input on the jframe that I want to open from the Jframe home, I open the following way the Jframe Jframe2 abrir =new Jframe2(); abr...
asked by 01.04.2018 / 16:52
1
answer

Jtable (getselectedrow) returns -1

Hello, I am loading a file with some data that I have stored in a MySql database, then with a mouseclicked event I select a record to edit it and in that interface there is a button that shows me a jdialog to be able to edit some records of my d...
asked by 01.04.2018 / 03:36
1
answer

I have this error when wanting to go from an Activity to a Fragment

He tells me that I should add the fragment to Manifest but he will not let me ... This is the error in the logcat E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.matias.finalcode, PID: 9941 a...
asked by 01.04.2018 / 15:59
0
answers

Problem RXTX Java

I have an application that communicates through the Serial port . But when disconnecting the port (logically disappears), but I want to avoid this error and not hang the application, just that I get an error message. The error that the console...
asked by 03.04.2018 / 10:54
1
answer

Error can not call getNString () when capturing BD values

I am developing a small application of a private clinic and to enter the application, I first select the patient's identifier through JComboBox . Then, I have a method to fill a arrayList with the patients' data to later fill in...
asked by 02.05.2018 / 18:45