Questions tagged as 'java'

2
answers

Call values of a class using a value obtained in a jtextfield

I need a little help ... I have a jframe in which I call another jframe, with this I capture in a jtexfiel a certain text. What I need is for that jtexfiel to call the values of another jframe. for example: the uroanalysis class has col...
asked by 17.03.2018 / 22:37
1
answer

Error executing my [duplicate] program

I'm doing a small program as an institute assignment. When executing the program I get this error:    Exception in thread "main" java.lang.NullPointerException       at Instituto1.asignarAsignatura (Instituto1.java:103)       at Program....
asked by 18.03.2018 / 21:01
1
answer

How can I join two lists that are simply linked? JAVA

It's something very simple but it has given me a little headache, I am very new. The idea is to join two lists so that: list one = 1, 3, 5 list two = 2, 4, 6 The result should be: list three = 1, 2, 3, 4, 5, 6 I already made the c...
asked by 17.03.2018 / 23:40
1
answer

Encrypt text string with SHA1

I have the following code in Java: import java.io.UnsupportedEncodingException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.Base64; public class EnconderPass { public static void main(S...
asked by 23.07.2017 / 23:43
1
answer

Netbeans does not display the first characters of the ASCII table. Java

   ☺☻ ♥ ♦ ♣ ♠ • ◘ ○ ◙♂♀ ♪ ♫ ☼►◄↕! ¶§▬↨ ↑ ↓ → ← ∟↔☻↔ ▲ ▼! "" # $% & '' ()) * +, -. / 01234568 When I print the first characters in Netbeans up to ! I get an empty box, try to change the encoding from UTF-8 to ISO-8859-1 in project prop...
asked by 14.02.2018 / 14:06
2
answers

Android ScrollView Hidden Elements

I have an XML which adds a ScrollView if some device had a smaller screen, the problem comes in that by focusing on the last element of my edittexts the accept button which is always in BOTTOM true I cover my box where I am...
asked by 15.03.2018 / 18:11
1
answer

Read xml file and persist information every so often

This is the scenario: I have an xml file that contains information that must be stored, updated or deleted from my database every month. I have taken two approaches to read the file from Java every so often: I used a cron with @Scheduled...
asked by 16.03.2018 / 11:55
1
answer

How to avoid using the same Array in 2 different classes?

This question arose when creating multiple classes and having to create the same array several times in these classes: private final static String[] types = { String.class.getSimpleName(), Integer.class.getSimpleName(), Date.class....
asked by 14.11.2018 / 04:36
1
answer

ArrayList Enter people data by screen and show the people Introduced

Hello very good I have a problem with my code and it took 2 days without being able to finish it my problem is that I have a scanner where I am entering the data of the people (Name, last name, age, etc ...) these data are lost in sets that I ha...
asked by 15.11.2018 / 10:55
1
answer

android java.lang.ClassCastException: android.widget.GridView can not be cast to android.widget.TextView

I have been asked to create a hangman game for android and I have practically everything, but, I am giving error in this line of code: letterPressed(letters) letters is a GridView and it gives me this error in the log: java.lang.ClassCas...
asked by 15.11.2018 / 15:26