🔒 Closed Sa mga marunong mag program sa java

Status
Not open for further replies.
Guys IT student po course ko baka may mga kagaya ko dito na may mga compilation ng mga java exercises na pinapagawa ng Instructor niyo dati
share sana ng mapag aralan ko as reference.
 
Halimbawa mga array exercises Determine Highest number or lowest number.

Yun pong mga ganon last topic kase namin yun sir.. Kailangan kasi
1.Write a Java program to sort an array of given non-negative integers.
Java:
//Example
public void sort(int[] array){
    //code here
}

2.Write a Java program to check if the non-negative array is sorted.
Java:
//Example
public boolean isSorted(int[] array){
//code here
}
 
3. Write a java program to determine the index of first occurrence of lowest element in the array.
Java:
//Example
public int minIndex(int[] array){
    //code here
}
// if I have a array ompose of {6,5,8,4,5,4}
//and if I used minIndex(array)
//this should return 3
 
Status
Not open for further replies.

About this Thread

  • 5
    Replies
  • 628
    Views
  • 3
    Participants
Last reply from:
Arcturus

Trending Topics

Online now

Members online
672
Guests online
2,854
Total visitors
3,526

Forum statistics

Threads
2,328,970
Posts
29,245,505
Members
1,158,176
Latest member
Jaxx69
Back
Top