- Reverse a String – Enter a string and the program will reverse it and print it out.
- Pig Latin – Pig Latin is a game of alterations played on the English language game. To create the Pig Latin form of an English word the initial consonant sound is transposed to the end of the word and an ay is affixed (Ex.: "banana" would yield anana-bay). Read Wikipedia for more information on rules.
- Count Vowels – Enter a string and the program counts the number of vowels in the text. For added complexity have it report a sum of each vowel found.
- Check if Palindrome – Checks if the string entered by the user is a palindrome. That is that it reads the same forwards as backwards like “racecar”
- Count Words in a String – Counts the number of individual words in a string. For added complexity read these strings in from a text file and generate a summary.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<link rel="stylesheet" href="styles.css" charset="utf-8"> | |
</head> | |
<body> | |
<div id="ktnnewslogo"> | |
<div id="ktnsection"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.bitrev.shapesbase; | |
public class Circle extends Shapes { // Circle is a shape therefore inherits properties of a shape | |
private double radius; | |
public Circle(double radius) | |
{ | |
super(); // calling the parent class constructor | |
this.radius = radius; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Main { | |
public static void main(String[] args) { | |
Shapes s = new Shapes(); | |
s.calculateCircleArea(5.0); | |
s.displayArea(); | |
s.displayFormattedArea(); | |
System.out.println(); // spacing |
We are excited that you are interested in contributing to Swahilinux. Swahilinux is beginner friendly and everyone is welcome to contribute.
All members of our community are expected to follow our Code of Conduct. Please make sure you are welcoming and friendly in all our spaces.
- On Telegram - Swahilinux