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 5 of 5

Thread: NEED HELP FOR MY CODE BELOW

  1. #1
    Junior Member
    Join Date
    Jan 2014
    Location
    Zimbabwe
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default NEED HELP FOR MY CODE BELOW

    public class MinimumMumber{
    public static void main(string[]args){
    byte a =20;
    byte b =10;
    byte c =min(a,b);
    system.out.printIn("The minimum between "+a+"and"+b+"is"+c);;
    }
    public static byte min(byte a,byte b){
    byte result;
    if ( a < b)
    result = a;
    else
    result= b;
    return result;
    }
    }tHE ERROR SAYS IT CANNOT FIND SINGLE STRING ON THE MAIN METHOD


  2. #2
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    609
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: NEED HELP FOR MY CODE BELOW

    Java is case sensitive. Please format your code. http://www.javaprogrammingforums.com...uncements.html

  3. #3
    Junior Member
    Join Date
    Jan 2014
    Location
    Zimbabwe
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: NEED HELP FOR MY CODE BELOW

    thanks very much.It has finally compiled.Have you ever used BlueJ before.How do I run my prog using bluej?

  4. #4
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    609
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: NEED HELP FOR MY CODE BELOW

    No idea, I bet google knows.

  5. #5
    Junior Member
    Join Date
    Jan 2014
    Location
    Zimbabwe
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: NEED HELP FOR MY CODE BELOW

    okay thanks

Similar Threads

  1. Replies: 3
    Last Post: April 27th, 2013, 07:19 AM
  2. Replies: 4
    Last Post: January 24th, 2013, 11:20 AM
  3. Replies: 7
    Last Post: January 24th, 2013, 10:41 AM
  4. Replies: 5
    Last Post: November 14th, 2012, 10:47 AM
  5. Replies: 3
    Last Post: September 3rd, 2012, 11:36 AM