Questions tagged as 'java'

1
answer

Object not instantiated (not previously done a new)

I have the following: public class Person{ private String name; private double age; public Person() throws Exception{ setName("Dummy"); age= 12; } public Person(double age) { this.age= age; } public String getName()...
asked by 12.10.2018 / 10:14
2
answers

Multilists linked with ArrayList

I am creating a program that simulates the functioning of a metro network. I have reached a point where I have to create the lines from a graph where I have all the stops and their respective connections. I have considered the option of creat...
asked by 05.12.2018 / 19:40
1
answer

How can I solve this program? Java Cycle For

It is necessary to develop a program that allows managing the information to organize the fifth edition of a marathon. It is known that: For organizational matters, a maximum amount of 15,000 is allowed (but I put 5 in the program to be able...
asked by 04.10.2018 / 16:21
1
answer

Convert a date format to Java

I have a method to parse from an xml in the form of a string, to a Request object. But in the xml the date comes to me like this: 2009-06-12T00: 00: 00 + 02: 00 Then I do not know what format to give the SimpleDateFormat to be able to conv...
asked by 21.09.2018 / 08:13
3
answers

How to convert a variable int to vector?

I've been trying to do this problem but I can not finish it enter int and write it in letter Example 150 == one hundred fifty My biggest problem is that I get compile error when trying to print the vectors of numbers, I guess that is b...
asked by 17.09.2018 / 05:00
1
answer

error in java when saving image in mysql

in the following code, the insert dataData works perfectly, but the editData method is giving me a headache, I do not find it back public int insertDatos(String nom,String apell,String com,String pos,String emai,String tele,String not, F...
asked by 07.08.2018 / 20:27
1
answer

Get the fourth number of numbers separated by; with regular expressions java

I'm trying to find the number that is in the fourth position of a string of numbers separated by semicolons The example string is as follows: 84;29.02964;28.87731;25.28935;0;-0.1523228;3.735915;27;27;349;27;27;413;27;27;371;26;26;373;26;26;...
asked by 03.07.2018 / 14:17
2
answers

How to generate an event by clicking on a checkbox with javascript?

I have the following code, what it does is add variables and place the final result in an input, now what I want is that when you click on a checkbox, add 5 to the total result and update the input with the new value , and if I click again on th...
asked by 11.09.2018 / 03:37
2
answers

Why does not the if function?

Enter the result of 4 matches played between team A and team B. Determine and report the number of matches won by each and the winner of more matches if they did not get the same results. This time my problem is that if I enter the same numbe...
asked by 27.08.2018 / 00:20
3
answers

Identify an anagram

I'm doing an exercise and I need to identify an anagram. More or less I have it, but it fails me, because I do not correctly identify the capitals of the lowercase letters and this I do not know very well how to do it. I have defined a method...
asked by 29.12.2016 / 14:42