Skip to content

Commit

Permalink
Atualização do Diagrama da Arquitetura do Software
Browse files Browse the repository at this point in the history
  • Loading branch information
Maiconrq committed Apr 29, 2021
0 parents commit 06a022c
Show file tree
Hide file tree
Showing 46 changed files with 5,564 additions and 0 deletions.
Binary file added ECONNOMIZZE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# ECONOMIZZE
![Imagem Interface](https://github.com/Maiconrq/Economizze/blob/main/ECONNOMIZZE.png)


[![Série](https://img.shields.io/badge/Maiconrq-INMTE-orange)](https://github.com/Maiconrq/Economizze)
[![licence mit](https://img.shields.io/badge/licence-MIT-blue.svg)](https://github.com/afonsopacifer/open-source-boilerplate/blob/master/LICENSE.md)
![language](https://img.shields.io/badge/java-only-yellow)

:rocket: Project with OO approaches and Java applications.

> :rocket: **Projeto com abordagens de OO e aplicações em Java.**

## Versioning / Versionamento
- This project does not follow any versioning requirements.

> **Esse projeto não segue nenhum requisito de versionamento.**

## Contributing / Contribuindo

- Want to contribute? [Follow this recommendations](./CONTRIBUTING.md):

> **Pretende contribuir? [Siga esses passos](./CONTRIBUTING.md):**

## History / História
- See [Commit changes](https://github.com/Maiconrq/Economizze/commits/main) for details.

> **Consulte [Mudanças de commit](https://github.com/Maiconrq/Economizze/commits/main) para obter detalhes.**

## License / Licença
[MIT License](https://github.com/Maiconrq/INMTE/blob/main/LICENSE) © [Maicon Rodrigues](https://github.com/Maiconrq)
Binary file added UMLECONOMIZZE-ListaDeCompras.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?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>com.mycompany</groupId>
<artifactId>CarrinhoDeCompras</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
</project>
37 changes: 37 additions & 0 deletions src/main/java/controller/CarrinhoControl.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package controller;

import java.util.ArrayList;
import model.Carrinho;

/**
*
* @author lucas
*/
public class CarrinhoControl {
public static boolean SalvarCarrinho(String nome,String quantiade,String preco){
Carrinho f = new Carrinho(nome,quantiade,preco);
return f.Perdurar();
}
public static ArrayList<String[]> getCarrinhos(){

ArrayList<String[]> Carrinhos = new ArrayList();

ArrayList<Carrinho> F = Carrinho.getCarrinhos();
if(F!=null){
for(int i=0;i<F.size();i++){
String f[]= new String[5];
f[0]=F.get(i).getNome();
f[1]=F.get(i).getQuantiade();
f[2]=F.get(i).getPreco();

Carrinhos.add(f);
}
}
return Carrinhos;
}
}
Loading

0 comments on commit 06a022c

Please sign in to comment.