Questions tagged as 'java'

2
answers

What is the difference between Spring / JSF / JSP? [closed]

I am learning how to program and I would like to know what are the main differences or what do you recommend me to learn?     
asked by 29.05.2017 / 07:52
2
answers

Problems Deleting Alarm

I have a problem with my Alarms, I can add them and modify them, but do not delete them. I create a person with image, name and alarm, at the time of deleting it, only the image and name are deleted, the alarm always remains activated. To...
asked by 18.01.2017 / 17:24
2
answers

Detect duplicate words with Regex

I'm trying to find all the duplicate elements in a sentence. To do this, I am testing with the following code, but I only detect the first duplicate word and I would like to replace all of them, regardless of whether they are uppercase or low...
asked by 04.01.2017 / 11:38
1
answer

Call handling

I was making an application that makes calls with the following code Intent intent = new Intent(Intent.ACTION_CALL); intent.setData(Uri.parse(“tel:numerodetelefono”)); activity.startActivity(intent); There is some way to know how long...
asked by 18.01.2017 / 21:37
3
answers

java.lang.NullPointerException

I have a small problem that I did not understand, it is that my application is giving me the following error after having programmed the Web Service . here I leave the code: public class Winery { private static final String wineURL =...
asked by 01.11.2016 / 20:52
2
answers

Java function to find numbers

I am trying to write a program to show the list of coquette numbers cousins of a number of figures entered by the user (between 2 and 15 ). I already have the functions of capicúa and cousin. But the problem I have is how to make...
asked by 30.10.2016 / 06:50
1
answer

Creating controls on forms

I'm starting Java, I'm using IntelliJ IDEA, creating a desktop app, I'm creating a form and adding controls, like Label , TextBox , Button and I see that everything is done by code: public class frmLogin extends JFrame {...
asked by 24.11.2016 / 16:50
3
answers

Why can not I create an ArrayList without parameters?

It tells me that the constructor does not have parameters when in the API 7 java an ArrayList can be built without paramentros ie empty. import java.util.Iterator; import java.util.List; public class ArrayList { public static void main(St...
asked by 20.06.2017 / 20:58
2
answers

DataOutputStream and keyboard reading with Scanner

   The program runs but ends without anything being shown   screen. Does anyone know why? public static void mostrarProductos() { DataInputStream dataInputStream = null; try { dataInputStream = new DataInputStrea...
asked by 23.09.2016 / 12:18
1
answer

Correct way to show money

I am starting to work on a system that manages money, for the amounts I use the BigDecimal data type, however I have encountered some problems when generating invoices for the final client, since the invoices only have 2 decimals, therefore:...
asked by 05.08.2017 / 00:06