Hello,
I would like to add a feature to my code, the possibility of seeking an element present in the table
Here is my code:
Code:
publicclass Tab (
publicstaticvoid main (String [] args) (
int notes;
System.out. System.out.println ("How many notes for one and two tables")
notes = Read.x();
int[] = NoteANewint[notes];
int[] = NoteBNewint[notes];
int[] = NotecNewint[notes];
for(int x = 0; x <noteA.lengthI + +) (
System.out. System.out.println ("Table 1 - Enter the footnote"+ (x +1) +":")
noteA [x] = Read.x();}
for(int x = 0; x <noteB.lengthI + +) (
System.out. System.out.println ("Table 2 - Enter the footnote"+ (x +1) +":")
noteB [x] = Read.x();
}
for(int x = 0; x <noteA.lengthI + +) (
Notec [x] = noteA [x] + noteB [x];
)
for(int x = 0; x <noteA.lengthI + +) (
System.out. System.out.println ("The values of the table are"+ Notec [x]);
)
System.out. System.out.println ("Please enter something to search");
int note;
= See note.x()
) [/ LEFT]
)
Bookmarks