Skip to content

YuriiJavaDev/JavaBasics_Task_63_V0.1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Cyrillic Rune (JavaBasics_Task_63_V0.1)

📖 Description

This project concludes the series of character studies by exploring a Cyrillic symbol. It demonstrates that Java's char type natively supports a wide range of global characters through the Unicode standard.

📋 Requirements Compliance

Task 63: Find and display the Unicode numeric code for the character 'Ж'.

Requirements:

  • Declare a char variable and assign it the value 'Ж'.
  • Perform an integer conversion to reveal the numeric code.
  • Print the result in the exact format: Symbol code 'Ж': ....

🚀 Architectural Stack

  • Encoding Mastery: Utilizing Java's UTF-16 character representation to handle non-ASCII characters.
  • Data Transformation: Seamlessly casting between character and integer types for data inspection.

🏗️ Implementation Details

  • Unicode Range: While 'W' was in the basic Latin range (87), 'Ж' is located in the Cyrillic block, resulting in a significantly higher numeric value.
  • Memory Consistency: Regardless of the symbol, Java allocates 2 bytes for any char variable.

📋 Expected result

Symbol code 'Ж': 1046

💻 Code Example

Project Structure:

src/com/yurii/pavlenko/
                └── CyrillicRune.java # Main Entry Point & Logic

Code

package com.yurii.pavlenko;

public class CyrillicRune {
    public static void main(String[] args) {
        char cyrillicCharacter = 'Ж';
        int revelationCode = (int) cyrillicCharacter;
        System.out.println("Symbol code 'Ж': " + revelationCode);
    }
}

⚖️ 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 tutorial project. JavaBasics_Task_63_V0.1 Displaying Unicode revelation for Cyrillic character 'Ж'. 030226_1502

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages