🔒 Closed Help! coding!

Status
Not open for further replies.
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
  • 649
    Views
  • 3
    Participants
Last reply from:
codyscott

Trending Topics

Online now

Members online
720
Guests online
2,372
Total visitors
3,092

Forum statistics

Threads
2,300,587
Posts
29,137,702
Members
1,200,577
Latest member
enzomatrix
Back
Top