What's new

Closed Sa mga marunong mag program sa java

Status
Not open for further replies.

Fox Hole

Forum Veteran
Joined
May 8, 2018
Posts
1,533
Solutions
66
Reaction
1,604
Points
791
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
 
Last edited:
Status
Not open for further replies.
Back
Top