I am learning basic programming in Java and when I try to go through a array one-dimensional I get this error:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5
at Array_2.main(Array_2.java:6)
And I rea...
Good morning I THINK I have an error in the method getAutocompletePredictions since the error that comes out in a toast when writing in the autocomplete of the app comes out Error : status{statusCode=ERROR, resolution=null} . Everyt...
Good I'm doing a program where I must (enter the name and the note of some students) make 2 arrays one of the String type and another of the float type. I have a problem in the main when I want to enter the student data by console.
First I put t...
In my review I was told that with the values contained in the table that was printed on a sheet I would get an arrangement with its percentages. My question is how do I create a matrix with those same values and then put percentages in an array....
I tell you that I have two classes, a class of Task type and another of type Person, within the attributes of type person, has an ArrayList of Task type,
when I create an object of Task type, and when filling this object with its attributes....
I was doing this arrays program:
Write a line of code that declares an array type char and initialize it with the string constant “Estudiando cadenas” . The array must have a size that allows you to save the string without a...
I have the next anonymous class
ActionListener seleccionYo= new ActionListener(){
@Override
public void actionPerformed(ActionEvent ae, Hero hero, Yo yo){
hero = new Yo("Oscar", 2, 0, 1000, 50, 25, 5, false...
I have problems when printing some vectors.
I must fill 2 vectors of 5 positions each, then go through those vectors and if there are repeated values exchange those values repeated by -1, but keeping one of them and storing that modified vect...
I'm with the following exercise, and I'll put you where I got stuck, if you can give me a cable.
Exercise 2
Create a project Appliances, in it a package with the same name and an Appliances class (in singular) that includes
public class...