Welcome! Log In Create A New Profile

Advanced

Posting Java code here

Posted by Mac 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
avatar
Mac
Posting Java code here
February 03, 2010 08:52AM
Post Java code in these forums by clicking the 4th button from the left in the toolbar. Click on Java. Two tags will appear. Write or paste your code between these tags.

The result appears here aunder.

Language: Java
int counter = 1; double total = 0; do{ System.out.println("Enter price of item [decimal]: "); double price = keyIn.nextDouble(); total = total + price; assert total < 100.0; counter = counter + 1; } while(counter < 5);

The reason we make use of code tags is that some code can be interpreted by the server as smileys, e.g. "winking smiley when you meant to show " )
Re: Posting Java code here
February 03, 2010 10:26PM
public class SimpleProgram {
public static void main(String[] args) {
System.out.printIn("A proverb:"winking smiley;

String proverb = "Practice makes perfect!";
System.out.printIn(proverb);

int characterCount = proverb.length();
System.out.printIn("The proverb has " + characterCount + " characters."winking smiley;
}
}
avatar
Mac
Re: Posting Java code here
February 04, 2010 06:33AM
This thread does not mean that you have to post your Java code here - it just explains how to post code in this forum... and clearly you did not do it as requested..?
Re: Posting Java code here
March 11, 2010 05:06PM
i have a problem with q 5?
avatar
Mac
Re: Posting Java code here
March 12, 2010 07:56AM
Then start a new thread and explain your problem.... It is like saying - I have a problem with my car - help me fix it. What is wrong, what have you tried? What error message do you get?
Re: Posting Java code here
March 26, 2010 01:24PM
try this site guys http://docs.cs.up.ac.za
Sorry, only registered users may post in this forum.

Click here to login