Computer Programming Mailing A Letter Example In Java

Mailing A Letter In Java

In the example below :

[Object Oriented Programming Example Mailing A Letter]

This tutorial implements it in Java.

[Do you remember in our simple example ]

It showed a class and also main.

This example will need a few classes, one of which will have a main.

Do you remember the significance of main ?

Classes

Envelope
Letter
Stamp
Paper

Although what I’m about to do is not needed. I am adding an additional class called
Start

The reason for start is to hold main and to get things running.

NOTE: In a more complex example there would be an obvious top class which would have main

To Read The Full Article




Object-Oriented Programming Example Mailing A Letter

Think about posting a letter

You have probably never thought about posting a letter in an object oriented way. In fact, it is a perfect example to show how object oriented works.

What do we need to post a letter ?

  • An envelope
  • A stamp
  • The letter 🙂
  • Paper

Have you realized each of these are an object ?

Define each of the objects

What do you need for a letter ?

How about some paper ?

Paper is an object.

A letter may have one or more pieces of paper.

How do we want to specify paper.

It’s size

It’s weight ( 80 or 100 g )

It’s colour

To Read The Full Article




Linux Any Face Any Time

Linux Can Have Many Looks…

There seems to be a trend of people moving from Mac or Ms to Linux and often ask about which is the best Linux for them.

THERE IS NO BEST LINUX…….

Why ?

They are probably asking because in MS and Mac the GUI ( Graphical User Interface ) or Desktop is built into the Operating System and whilst you can play with colours, wall papers etc you are basically tied into what Mac and Ms give you.

What I have just said is pretty much true, if you go back to the days of Ms Win 3, it sat on top on Dos and Mac is actually a very heavily customized Unix.

The days of Ms Win on top of Dos, did have many limitations which as the industry progressed did need to be addressed and Ms chose to make the OS and Desktop combined.

Mac has so heavily customized Unix its hard to see as to how much they have changed things.

Click Here To Read The Full Article




More Meditation Videos

I have been very busy on creating videos on You Tube which are dedicated to those you wish to meditate.

There are more being regularly added to the collection.

For more information and to see all of Green PMF’s Videos take a look at :

Green PMF You Tube Channel




Raspberry PI – Ubuntu – Verdict Impressive

Watch The Full Review on You Tube

Raspberry PI – Ubuntu – Verdict Impressive
This article shows my attempt to install Ubuntu on a Raspberry Pi 4.

I used the Raspberry Imager, Under Select OS , Other General Purpose OS, Ubuntu, Ubuntu Desktop 21.04 (PI 4/400)
64 Bit desktop for Pi model 4 with 4G.

I put in the SD Card , Connected a USB Mouse, Keyboard and Network Cable.
Turned on and it booted to the install screen with out a problem ( unlike Mate ).

After being so disappointed with Mate, I did not really want to do this test but as I have used K Ubuntu for many years, I wanted to see, if the Pi really could be taken seriously or is it just a toy.

Entered the normal things, Lang etc. One difference between Ubuntu and Kubuntu is no screen to select disk or if I wanted to use full disk, LVM, manual etc. I do not know if that’s a Pi or the same as normal Ubuntu.

Install went well and took about the same time as I’ve been getting when installing from a USB stick to a normal desktop pc.

First Impressions:
Very clean desktop with the everyday apps showing in the side bar.
It was nice to see , it came with Libre Office, Thunder Bird and Firefox already installed.

To test it out, I played a You Tube video, Set up Thunder Bird and got it syncing with a huge mailbox and wrote a Libre Document at the same time.

It was responsive and actually felt like a decent PC.

Being excited about this, I tried to install GIMP via the Software Apps Tool, which failed, the installer did not give a reason.

I tried for Netbeans using a suggestion from a search :

sudo apt-get update
sudo apt-get install netbeans

It failed with missing dependencies but did not say which.
Looking around, it appears Netbeans is fine if built from source.

Over all very good.
This test restored faith in the Pi after the Mate disaster.




Raspberry Pi and Mate —- UURRRGGGHHHH

Raspberry PI – Ubuntu Mate – Verdict Unusable

This article shows my attempts to install Ubuntu Mate on a Raspberry Pi 4.

Watch the Review on You Tube

There are claims Mate works on Raspberry Pi.

Its official web site :

https://ubuntu-mate.org/raspberry-pi/

I followed the instructions and downloaded the installation image.

Which ended up with a file called :

ubuntu-mate-20.04.1-desktop-arm64+raspi.img

Using balena Etcher I burned the image to a micro SD Card.

The Etcher program works very well, I have often used it on both Mac and Kubunu to make bootable USB Sticks.

After creating a boot Micro SD Card it was time to place it in the Raspberry Pi4.

Switch on and…… The rest is in the video.

I really wanted this to work but overall it is disappointing and unusable.

For other topics see the Green PMF Wiki http://gwiki.greenpmf.org​ Or our home web site which discusses our activities including helping to reduce carbon emissions and helping endangered species. http://www.greenpmf.org




Green PMF Launches it’s first meditation video

Whilst work on incorporating our sister site continues.

We felt it would be good to start a new series of videos to help with meditation and to find inner peace.

Deep Healing Music Relax Mind Body: Cleanse Anxiety, Stress & Toxins, Magical

Sleep by Meditation and Healing.

This for those who are going through stress, anxiety, insomnia and depression.

It includes relaxing music that will help you to relief stress.

Or relief yourself from negative feelings like anxiety and help to enhance positive energy in you.

It can also give your meditation techniques a boost if you use this type of soothing music as you meditate.

It can also have healing capacity where you will learn how to find inner peace and heal yourself within with the capability of music.

Deep Healing Music Relax Mind Body: Cleanse Anxiety, Stress & Toxins, Magical Sleep Meditation Video




Raspberry Pi – My First Taste Of Raspberry Pi Day 1- The Pi Arrives.

The story continues, watch the next step in finding the answer of can a Raspberry Pi be an alternative to a PC.

Why am I doing this ?

Recently I have been having some ideas to play around with and when doing searches something called a Raspberry Pi kept appearing in the results.

After a while it set my mind thinking.

Whilst it clearly is great for the techies and frustrated hardware engineers, myself included, I thought I wonder if this could be used as a real alternative to a PC.

This is where my wife enters the picture. She is an intelligent, well educated woman who hates tech with a passion, to the point of I think she would prefer having teeth pulled than learn about IT.

So a little challenge formed, I wonder if I could make it such that she could use it and as far as possible enjoy doing so.

Read more about this next step in finding the answer to our question.

Read the the introduction article




Raspberry Pi – My First Taste Of Raspberry Pi

I apologize up front.

If your expecting a techie, talking about the spec of the Pi and launching in to electronics and programming this is not the article for you. I will write other articles of me having some fun covering that side.

Why am I doing this ?

Recently I have been having some ideas to play around with and when doing searches something called a Raspberry Pi kept appearing in the results.

After a while it set my mind thinking.

Whilst it clearly is great for the techies and frustrated hardware engineers, myself included, I thought I wonder if this could be used as a real alternative to a PC.

This is where my wife enters the picture. She is an intelligent, well educated woman who hates tech with a passion, to the point of I think she would prefer having teeth pulled than learn about IT.

So a little challenge formed, I wonder if I could make it such that she could use it and as far as possible enjoy doing so.

To read the full article




Things You Should Know Before You Switch To Linux

If your thinking of changing from Ms Win or Mac, this article gives you some pointers and things to consider.

A few of the good things

It is more secure than other options

My wife used to run WS Win and each day the virus checker would find 1000’s of virus / malware etc !

She did use the web for research but nothing of a questionable nature.

I suggested she gave Linux a try.

She hates all things tech with a passion. But found MS ran so slow and she wasted so time rebooting She hated that every evening after a long day working she had to run and remove the viruses knowing that tomorrow would be the same.

She did not want to learn a new system but agreed. I introduced her to Libre Office – which does the things MS Office should do. She already knew Thunder Bird ( email ), Firefox and found reading PDF’s easy.

It was not love at first use

She did love the improvement in speed. The fact she did not need to reboot at all. No wasted time dealing with virus’s etc. It took a little time to learn that in Linux, things are in different places and have different names. I pointed out that when she changed from XP to Win 7…… Win 7 to Win 10 etc……. Whats the difference ?

Linux grew on her

After only a few days she liked it and decided that it was worth her effort to learn it.

So much so, I never got to use my PC again 🙂

I had to get a new one. So it was a win win and I didnt even need to ask if I could buy a new PC 🙂 🙂 Techie heaven.

That’s one story but a true one

To Read The Full Article

Watch on You Tube