🔒 Closed Help! coding!

Status
Not open for further replies.

AhAhRhon

Enthusiast
help po kung paano ito. noob pa po kasi. di ko po alam paano. hihi.
 

Attachments

  • Untitled.webp
    Untitled.webp
    46 KB · Views: 33
brad hindi ka namain mabibigyan nang code for that. medyo madali lang naman po yan gawa ka list initiate then perform a crud functions.

sana inaral mo nalang yung basics. pero ok lang yan just keep it up and keep learning :)
kasi po kakabalik ko lang mag aral. hihi. nakalimutan ko na ang iba.
 
Step 1) gawa ka ng menu (logic if else or switch)

Step 2) gawa ka ng List object;
List<String> list = new LinkedList<>();

Step 3) populate default 10
list.add("Pedro");
list.add("Juan");
.........

Step 4) delete
first find name if exist on the list, if true, get the index number....and then delete using index number
list.remove(index)....or list.remove("Pedro")

step 5) insert
again, you can insert using an index number....
list.add(5, "George")....insert at index 5 ang pangalan na "George"

step 6) display
madali lang yan.. gamit ka lang ng FOR loop

step 7) search
gamit ka ng list.contains("Pedro").... results to boolean true or false

....Read Java Collection framework.... o kaya paste mo dito ginawa mo para ma-correct natin.

;)


***********
SeriouslyJava Group - sali kung gusto matuto ng Java
https://phcorner.org/forums/385/
***********
 
Status
Not open for further replies.

About this Thread

  • 4
    Replies
  • 626
    Views
  • 3
    Participants
Last reply from:
codyscott

Online now

Members online
323
Guests online
857
Total visitors
1,180

Forum statistics

Threads
2,275,090
Posts
28,960,586
Members
1,233,588
Latest member
maikera97
Back
Top