🔒 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
  • 602
    Views
  • 3
    Participants
Last reply from:
Arcturus

Trending Topics

Online now

Members online
1,087
Guests online
992
Total visitors
2,079

Forum statistics

Threads
2,274,856
Posts
28,958,885
Members
1,233,461
Latest member
Kdgwapo
Back
Top