Skip to content

Commit 02ddfee

Browse files
committed
Initial commit
0 parents  commit 02ddfee

File tree

5 files changed

+66
-0
lines changed

5 files changed

+66
-0
lines changed

POO/pom.xml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<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">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.mycompany.poo</groupId>
5+
<artifactId>POO</artifactId>
6+
<version>1.0-SNAPSHOT</version>
7+
<properties>
8+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
9+
<maven.compiler.source>11</maven.compiler.source>
10+
<maven.compiler.target>11</maven.compiler.target>
11+
<exec.mainClass>com.mycompany.poo.POO</exec.mainClass>
12+
</properties>
13+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3+
* Click nbfs://nbhost/SystemFileSystem/Templates/Project/Maven2/JavaApp/src/main/java/${packagePath}/${mainClassName}.java to edit this template
4+
*/
5+
6+
package com.mycompany.poo;
7+
8+
/**
9+
*
10+
* @author lucas
11+
*/
12+
public class POO {
13+
14+
public static void main(String[] args) {
15+
System.out.println("Hello World!");
16+
}
17+
}
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3+
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4+
*/
5+
package oo.composicao;
6+
7+
/**
8+
*
9+
* @author lucas
10+
*/
11+
public class Carro {
12+
13+
}
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3+
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4+
*/
5+
package oo.composicao;
6+
7+
/**
8+
*
9+
* @author lucas
10+
*/
11+
public class Motor {
12+
boolean ligado = false;
13+
double fatorInjecao = 1;
14+
15+
int giros(){
16+
if(!ligado){
17+
return 0;
18+
}else{
19+
return (int) Math.round(fatorInjecao*3000);
20+
}
21+
}
22+
}

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
POO-Java

0 commit comments

Comments
 (0)