Skip to content

YuriiJavaDev/JavaBasics_Task_12

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Message from the future (JavaBasics_Task_12)

📌 Description

This project focuses on the String class in Java. It demonstrates how to declare a variable of an object type, initialize it with a string literal containing a message "from the future", and print the stored character sequence to the console.

🚀 Task Requirements

  1. Declare a String variable named futureMessage.
  2. Assign it the legendary phrase: "Good news everyone!".
  3. Display this message on the screen.

📋 Expected Output

After running the program, the console should display:

Good news everyone!

🛠 Technical Stack

  • Language: Java 23
  • IDE: IntelliJ IDEA
  • Concepts: Object types (String), Object-oriented basics, Console output.

⌨️ Practical Implementation

The code uses the String class, which acts as an object container for text. Unlike primitive types (like int), it stores data in a structured way and provides built-in tools for data manipulation.

💻 Code Example

A simple and effective implementation of receiving a message from the future :)

package com.yurii.pavlenko;

public class Task_12_App {
    public static void main(String[] args) {
        // Receiving a message from the future
        String futureMessage = "Good news everyone!";

        // Printing to the console
        System.out.println(futureMessage);
    }
}

⚖️ License

This project is licensed under the MIT License.

Copyright (c) 2026 Yurii Pavlenko

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files...

License: MIT

About

This is a learning project. JavaBasics_Task_12 Implementing message delivery "from the future" using a String object. 160126_0856

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages