Markou moment
This commit is contained in:
		
							
								
								
									
										14
									
								
								Semester 3/Assignments/MaxTask/pom.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								Semester 3/Assignments/MaxTask/pom.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <groupId>edu.slcc.asdv.caleb</groupId>
 | 
			
		||||
    <artifactId>MaxTask</artifactId>
 | 
			
		||||
    <version>1.0-SNAPSHOT</version>
 | 
			
		||||
    <packaging>jar</packaging>
 | 
			
		||||
    <properties>
 | 
			
		||||
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 | 
			
		||||
        <maven.compiler.source>20</maven.compiler.source>
 | 
			
		||||
        <maven.compiler.target>20</maven.compiler.target>
 | 
			
		||||
        <exec.mainClass>edu.slcc.asdv.caleb.maxtask.MaxTask</exec.mainClass>
 | 
			
		||||
    </properties>
 | 
			
		||||
</project>
 | 
			
		||||
@@ -0,0 +1,23 @@
 | 
			
		||||
/*
 | 
			
		||||
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
package edu.slcc.asdv.caleb.maxtask;
 | 
			
		||||
 | 
			
		||||
import java.util.concurrent.RecursiveTask;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 *
 | 
			
		||||
 * @author caleb
 | 
			
		||||
 */
 | 
			
		||||
public class MaxTask {
 | 
			
		||||
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
       
 | 
			
		||||
    }
 | 
			
		||||
    public static int max(int[] list) {
 | 
			
		||||
        RecursiveTask<Integer> task = new MaxTask(list 0, list.length) {
 | 
			
		||||
        
 | 
			
		||||
    }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user