I try to save records of indexed buildings in my array since I can register 1 or more buildings in a single form, for each building I want to store name_building, number_calls, and prefix_calls. My code is as follows
$edificios = array();...
I made a program in codeblocks which should code in polar zenith and although it identifies the characters and exchanges it generates a problem with the characters that are not exchanged transforming them into completely different characters...
My problem arises when I order my array String nombre[5] (Whenever I consult when I have less than 5 names), because when I want to consult data I get an error:
package mainclass;
import java.util.Scanner;
import java.util.Arrays...
I want to calculate the average of this matrix but only classes, based on this matrix:
2 4 4 0 0
1 3 5 5 5
1 5 3 2 4
2 6 2 1 3
2 5 3 0 1
The first column indicates the number of the class that belongs to the row, the first row only indicat...
My question is how can I print my two-dimensional arrangement in this way
My fix is 8*8 and I use this to print:
for (int x=0; x < matriz.length; x++)
{
for (int y=0; y < matriz[x].length; y++)
{
System.out.p...
Good day, I'm doing a program where I print a type of sales invoice from a warehouse, I have everything done but I would like to know how to go back to the main menu to do the whole process again without closing and opening the program ... Here...
When compiling the following program in the cmd I get the error:
unreachable statement
public class Ejercicio1{
public static void main(String[] args){
//A)
int[] f = {10,2,4,5,4,3,8,9,2,3};
System.out.prin...
My problem is that I capture 2 strings and then I want to save them in their arrangements
string nombre_buscado;
string apellido_buscado;
a
nombre[5][10]
apellido[5][10]
and I get the error in:
nombre[i]=nombre_buscado;
apellido[i]=a...
I have an abstract class called Client with two subclasses. In the main file (called TestClient) I need to make an array but when I try to start it it gives me the message "Client is abstract; can not be instantiated".
// Arreglo de client...
Could you help me please with this code, I do not finish understanding why you give me this error:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 4
at com.company.Main.main(Main.java:64)
Apart from that if you ca...