Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Please Help

  1. #1
    Junior Member
    Join Date
    Feb 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Please Help

    Hello World, I am taking a Java Programming class and im confused on what im doing wrong. The Program is supposed to display a table that converts Kilo's to Pounds and show Calculated pounds and Calculated Kilos. Im sure this is very easy for everyone here but me....lol please help

    Thank you

    Daniel

     
    public class Program4 {
    }
    	public static void main(String[] args){
    		System.out.println(" Conversion Chart");
     
    		System.out.println("\n--------------------------------------");
    		for(int k = 1; k <= 199; k + 2 )
    			System.out.print("   " + k);
     
    			for(int p = 2.2; p <= 437.8; p * k)
    				System.out.print(p + "|");
    				for(int cp = 20; cp <= 515; cp + 5)
    					System.out.print("  " + cp);
     
    					for(int ck = 9.09; ck <= 234.09; ck / cp);
    					System.out.printf("%2d", + ck);

  2. #2
    Junior Member
    Join Date
    Feb 2011
    Posts
    19
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default Re: Please Help

    1. You didn't gave us the whole code.
    2. What seems to be the problem?

  3. #3
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: Please Help

    Welcome to the forums danielval.

    Like codesmuggler says, it would be nice if you could tell us what the problem seems to be.
    What happens when you compile the code? Does part of it work?

    As you haven't given us something we can compile, it will limit your replies.

    Thanks
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.