I'm Aletha, and I'm a software developer who programs in Java. Today I will be exploring something a little different than my usual small projects about random topics: gender identity. For those unfamiliar with the concept, gender identity is a person's internal sense of being male, female, both, or neither. It is different from their assigned gender at birth and society's expectations of their gender due to its biological sex.
This project will explore gender identity in the context of a Java code example. Java code is the basic language that programs and applications are written in and so by understanding a gender identity example with Java code, we can bring this concept into a tangible and practical realm. A large part of this project will be to demonstrate how the application works in relation to gender identity, and how it can be coded for.
The first aspect of this project will be to create a system that allows someone to state how they identify at the start of the application's workflow. This can be done by using Java's String data type in order to store gender values. This data type can store words or sentences, so in our example the words 'Male', 'Female', 'Nonbinary', 'Both', and 'Neither' will be present. These values can then be used within coding to match up to the values used for gender identity.
Java will also be used to create a system to allow users to change their gender identity if they want to do so. This can be done by enabling Java's if-else statement process. The if-else statement process allows the application to check values stored in the program and, when it meets a certain condition, execute code based on that condition. In our case, if a user specifies their gender identity, the application will then execute a process and display a visual to confirm the gender identity selected.
Finally, a user interface can be created in Java for the application that incorporates the system created using the String data type and if-else statement process. This can incorporate the visuals we previously created to confirm gender identity selection, as well as a system for a user to modify their gender identity. This user interface can also include additional visuals such as icons for gender identity symbols or comparison charts.
By creating this project with Java code, I hope to help those unfamiliar with gender identity gain a better understanding of the concept. Hopefully a guided demonstration through code will bring the concept down to a more manageable and tangible level.