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

Trending Topics

Online now

Members online
1,172
Guests online
4,015
Total visitors
5,187

Forum statistics

Threads
2,306,220
Posts
29,170,431
Members
1,194,720
Latest member
barracuda88
Back
Top