I need you to ask the name of the students after having declared the number of students, but when entering the amount does not allow me to enter the name of the first student and I have one round of the cycle, for example: if I say that I have...
I have to make a constructor in the class CancionImpl that receives a string with the values of the properties separated by semicolons (;), in the following order: type id String , artist type Artist, duration in seconds, type name...
I have a JavaEE code that was delivered to me and I am trying to make it run to create a module from there, among the several libraries that are being imported are the following:
import javax.ejb.SessionContext;
import javax.ejb.Stateless;
imp...
public static void main(String[] args) {
int [] a = {7,2,4,8,3,9,1,5,10,6};
int menor;
for(int i = 0; i < 10; i++){
menor = a[0];
if (a[i] < menor){
menor = a[i];
}
else{...
I am trying to solve it because in my do-while function when executing it within my program, if I type "Q" or "q" the execution continues instead of exiting the loop:
public void enroll() {
// Get inside a loop, user hits Q to exit
S...
How can I read this .txt file, ignoring the words:
Id book:
Title:
Editorial:
List of authors:
and ignore the entire line:
"------- Text:".
Reference image:
I used this code to read the author's code and it works ver...
I hope you can answer the question I have.
What I want to do with my chess program is that when I select a piece of the board I can mark all the boxes where this piece can move, an example would be the peon, assuming it is the first move that...
I'm asking for a string to insert into a file, if the file does not exist I think so
and if it exists I rewrite it, it seems simple but for some reason it does not ask me to speak, the instruction is skipped. I do not understand anything because...
I am developing an app which has problems with two versions of Android, it has already been installed in different android, 4.4.4, 5, 6. but there are two smartphones that are stopped the app one is version 6.0.1 and the other andreo 8 oreo. I d...
I have a question with an exercise that says: Create a Book class with loan, return and toString methods.
I want the vector to grow as the number of books grows, but in codigo.length , codigo appears as not being initialized. Wha...