Questions tagged as 'java'

1
answer

Android API used for program that cuts songs

What Android API to use to edit and cut music? follows a link from an android app that does this: link I await.     
asked by 01.07.2014 / 16:48
2
answers

How to pass the code (id) by my viwer using thymeleaf and spring mvc for the controller?

My entity: package local.demo.models; import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity public class Evento i...
asked by 14.03.2018 / 15:49
2
answers

using java class from another directory

Well friends, I was using two classes: Funcionario.java (class 1, from the /home/lcs/Documentos/java/exercicio3 directory) and UtilizandoFuncionario.java (class 2, from the /home/lcs/Documentos/java directory)....
asked by 19.03.2018 / 21:07
1
answer

File reading in java spanning line specifies if exist

I'm reading a file in java that has the following structure: nomedapessoa;data de nascimentodependente1+tipodependente2+tipodependenteN+tipo You may have none, one or more dependents on each line of the file. The problem is that I can not t...
asked by 12.03.2018 / 15:38
1
answer

Return a value from a two-variable calculation to show the user using OOP. Result is not printed on the screen [closed]

Scanner deltas = new Scanner(System.in); Double ds; System.out.println("Insira o valor de Delta S"); ds = deltas.nextDouble(); setDeltas(ds); Scanner deltat = new Scanner(System.in);...
asked by 07.03.2018 / 17:54
1
answer

Check if given a value there are two values in the vector that are added equal to the value reported

I'm doing a game where the user has a menu with options and the option I took is the following, I make the normal loop and compare the values but it falls directly on ELSE , where I'm going wrong ?    Check if given a score there are...
asked by 03.12.2017 / 02:31
2
answers

How do I block the selected RadioButton?

I've created a RadioGroup with 3% internal%, but I can not fit a code that causes the user to select a RadioButton to be prevented from selecting another one. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/and...
asked by 04.12.2017 / 18:24
2
answers

Clear () and SendKeys () in a single method

I have methods clear and sendKeys and wanted "colapsar" both in one, WebElement user = webdriver.findElement(By.id("username")); user.clear(); user.sendKeys(username); WebElement passw = webdriver.findElement(By.id(...
asked by 05.12.2017 / 12:13
1
answer

How to dynamically change model data when changing value from the list that fills it?

I have a JTable where I have a column named colun1 I want to know how do I change the JTable data when any data in the list that fills it changes. Example I have a list with name of listString with 3 values "String 1" "String 2" "String 3"...
asked by 13.12.2017 / 17:16
1
answer

How to display query result in a JtextArea within a JtextArea

How do I display data from a query in a database within a JtextArea? I have done all my Listing method (which is in the class CarroDAO), and I want it to show the data inside the textArea (which is in the Screen class) follow the code: DA...
asked by 02.11.2017 / 18:20