Questions tagged as 'bluej'

1
answer

How do I fill an arraylist with several objects using the interface?

EDIT I want to print the 11 players that the user types in the interface. Player is an object with the data string dorsal, last name and position. Gamer is where the whole interface you see below is. Driver is listener where I add functi...
asked by 29.11.2018 / 22:11
3
answers

adding variables from a Java array

I have an arrangement with 12 elements, each one is a month of the year and they are assigned a number of days respectively int Enero=31; int Febrero=28; int diciembre=31; int cantidades[]= {Enero,Febrero,Marzo,Abril,Mayo,Junio,Julio,Agost...
asked by 04.09.2017 / 08:02
0
answers

Sum of numbers in Java pair position

I have an introduction problem to the programming. I must add the one digit numbers that are in even position: Example // Input = 32178 // Exit = 10     
asked by 03.10.2018 / 03:16
0
answers

Carry a counter of objects in java Bluej

I am currently creating a class called Store, in which I am asked to have 3 objects (Notebooks) in stock and also keep track of the stock that I own, since these objects can change their number, either increase or decrease, then I need to know h...
asked by 30.09.2018 / 05:04
1
answer

Matrix containing numbers and names

I am just learning to program in java, in blueJ, I need to create a code to calculate the salary of workers and in the end print the data of each worker (name, rut, contract, etc) in a matrix, I have been trying to do the matrix to print 4 data,...
asked by 04.11.2017 / 16:03
1
answer

How to clean the java terminal?

Is there any way to erase everything that appears in the java terminal after using some method with System.out.println ();?     
asked by 20.10.2017 / 05:19
0
answers

How to generate random numbers that increase their probability after being generated

I have the following code that creates a matrix a predefined size and fills it with empty spaces public class Juego { String tablero[][]= new String[15][35]; public Juego() { for( int i = 0; i < tablero.length; i++){ for(...
asked by 13.10.2017 / 07:40