Questions tagged as 'java'

1
answer

how to fix this java.util.Date can not be cast to java.sql.Date

hi I'm uploading an excel file to jsp to save it in MySQL the excel file has two fields type date, at the time of reading the respective file I get this error java.util.Date can not be cast to java .sql.Date when executing it and I could not s...
asked by 19.01.2017 / 22:04
2
answers

Error Resources $ NotFoundException for ImageView with vector drawable on Android

I just received an ANR report in the Google Play Console of an app that a user has shown to me using my app. android.content.res.Resources$NotFoundException: File res/drawable/ic_circular_way.xml from drawable resource ID #0x7f02006a. If the r...
asked by 16.01.2017 / 14:48
1
answer

Pass Text other than Spinner to EditText

I have a Spinner and an EditText with me that what I select in the Spinner is passed to the EditText but I want another text to be passed, I give an example. I select "Aquarius (Jan. 20 - Feb. 18)" in my Spinner and in my EditText the same is...
asked by 22.01.2017 / 15:30
2
answers

Delete or catch html style in POI

I have the following: String cadena="<ul><li>test &nbsp;</li><li>test 2</li></ul>" HSSFCell cell = row.createCell((short)0); cell.setCellValue(cadena) I would like the cell to take the html format or...
asked by 03.05.2017 / 10:19
2
answers

Text handling in Java views

In Android there is a handling of the texts and the views relating them in "values / strings.xml". To facilitate translations and reuse of text, the question is: How to implement something similar in Java desktop projects? I already apprec...
asked by 02.05.2017 / 20:27
1
answer

Compare two CSV files, print out an output with added values using Java

I have the following .csv files read in Java. The first csv file contains the following information (semesters) : 3,Primavera 5,Primavera 5,Verano 12,Primavera 10,Verano 22,Otono The second csv file contains (races) : 3,bachiller en...
asked by 16.03.2017 / 20:36
1
answer

The App crashed before giving permissions (Google Maps API)

I have put in my application for the API de Google (to use the Maps) and the following lines of code so that on all devices (including those above 6.0) can give permissions and that it works correctly. The code works and a sign comes out...
asked by 24.01.2017 / 17:04
2
answers

Select multiple alternate rows in a JTable

At the moment I select a row and I click on the send button, it is recorded correctly but when I select several rows, only one row is recorded, as I would do so that all the rows I selected will be recorded. I share an image and the code with wh...
asked by 26.01.2017 / 22:22
2
answers

Share object of a class Parcelable between Activities on Android

Some practical example of how it would be to share a class by implementing Parcelable to share an object between Activities? The class I have already defined public class Interstitial extends Banner implements Parcelable { ... The...
asked by 14.12.2016 / 19:38
1
answer

Object String Array Conflict

I have a problem with my program, and that is that I am modifying an arrayString of one of my objects (use positioning because it is an array of objects and each object has an array String initialized with space ""). What I intend to do is, put...
asked by 18.12.2016 / 16:32