Hey there! Sign in to join this conversationNew here? Join for free
x Turn on thread page Beta
    • Thread Starter

    I have this code to type up and I'm completely useless at JAVA so I was wondering if someone could post the answer on here don't bother trying to explaining it I won't get it trust me.
    the question is:

    Create a new Java project with a class called PostManPat.
    Create an appropriate variable called postcode that could store your own postcode.
    Put your own postcode into that variable.
    Create an appropriate variable called towncode that could store either a G (for Gravesham), a M (for Medway) or a D (for Dartford) – it should be as small as possible.
    Put your area’s letter in that variable
    Print the variables on the screen as per the example below.
Have you ever experienced racism/sexism at uni?
Useful revision links


Writing revision notes

Our top revision articles

Tips and advice on making the most of your study time.

Boomarked book

Superpowered study

Take the hard work out of revising with our masterplan.


Essay expert

Learn to write like a pro with our ultimate essay guide.

Can you help? Study Help unanswered threadsStudy Help rules and posting guidelines

Groups associated with this forum:

View associated groups

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.