Skip to content

O Post and Comment Management System é uma aplicação Java que permite criar posts com títulos, conteúdo e curtidas, além de adicionar e remover comentários. Ideal para demonstrar conceitos de programação orientada a objetos.

License

Notifications You must be signed in to change notification settings

benetesla/post-comment-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Post and Comment Example

This project is a simple Java application designed to manage posts and comments. The application allows users to create posts with titles, content, and likes, and to add comments to these posts.

Table of Contents

Introduction

The Post and Comment Post and Comment Example is a console-based Java application that helps in managing posts and their associated comments. This application demonstrates the use of object-oriented programming concepts such as classes, objects, and encapsulation.

Features

  • Create posts with titles, content, and likes.
  • Add and remove comments to/from posts.
  • Display post details along with their comments.

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/post-comment-management-system.git
  2. Navigate to the project directory:
    cd post-comment-management-system
  3. Compile the Java files:
    javac App.java

Usage

  1. Run the application:
    java App
  2. The application will create a sample post with comments and display the post details.

Classes

entities.Comment

Represents a comment on a post.

  • text (String): The content of the comment.

entities.Post

Represents a post with a title, content, likes, and comments.

  • comment (Date): The date the post was created.
  • title (String): The title of the post.
  • content (String): The content of the post.
  • likes (Integer): The number of likes for the post.
  • comments (List): The list of comments associated with the post.

App

The entry point of the application, which creates a sample post and adds comments to it.

License

This project is licensed under the MIT License. See the LICENSE file for more details.


This readme provides a basic overview of the project, its features, installation instructions, and class descriptions. Adjust the URLs and specific details as per your project repository and license.

About

O Post and Comment Management System é uma aplicação Java que permite criar posts com títulos, conteúdo e curtidas, além de adicionar e remover comentários. Ideal para demonstrar conceitos de programação orientada a objetos.

Topics

Resources

License

Stars

Watchers

Forks

Languages