I have the following:
JButton btnSalir = new JButton("Volver");
btnSalir.setBounds(469, 674, 89, 23);
btnSalir.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
Administra...
someone could help me solve a Java problem,
import java.util.ArrayList;
import java.util.Scanner;
public class EliminarDato {
static ArrayList<Paciente> pacientes = new ArrayList<Paciente>();
static ArrayList<En...
I am trying to fill a JTable with the records that a table has in my database in SQL.
I receive this error:
com.microsoft.sqlserver.jdbc.SQLServerException: The requested
operation is not supported on forward only result sets.
Sta...
good evening I want to know How to operate 2 values, both of different classes in a separate class in java? since I seek to operate (compare, add, subtract, divide, etc) two integer values entered by keyboard; I have these attributes converted i...
They ask me for a method where I have to load a txt file and add it to two arrays, one text and one double.
I have the following code and I want to know how to add it to the methods, I already have an idea but I do not know if it's okay.
Note...
I have the following html form which has a readonly "Base Price" field and I want to fill it with a value that will depend on the data that the other inputs have and then validate it with Javascript and Java (JSP, Servlets) to save them in a dat...
Good first I have this class User
package com.example.leaftime.rocketdefender;
/** * Created by Leaftime on 04/11/2017. */
public class User {
private Integer id;
private String name;
private Integer score;
public User(Int...
Monton 1 should be worth 3
Result by console
Program
package Nim;
import java.util.*;
public class Nim {
Scanner sc = new Scanner(System.in);
private int monton1;
private int monton2;
private int monton3;
public static int elegir;...
The return of the root method gives me an error and I do not know what it should be
import java.util.Scanner;
public class RaizCuadrada {
private int numero;
//CONSTRUCTORES
public RaizCuadrada(){
System.out.println("Inroduce un numero:...
Good morning!
I open this topic in case you can help me. It turns out that I have to create an object that inherits from View, but depending on a value it must be either a Button or an ImageButton. The problem is that I tried casting and dire...