Results 1 to 3 of 3
  1. #1
    arpitasoni92 is offline Member
    Join Date
    Aug 2013
    Posts
    1
    Rep Power
    0

    Default Help with code execution

    Can some please tell me why I am not being able to execute this:

    Public Class Main {
    public static void main (String[] args) {
    byte e = 3;
    byte l = 1;
    byte o = 0;
    String output = "H" + e + l + l + o + "w"+ o + "r" + l + "d";
    System.out.println(output);
    }}

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,703
    Rep Power
    5

    Default Re: Help with code execution

    Well what you posted won't even compile, so you're not even at the executing part yet. The keyword is 'public', not 'Public'.

    And questions consisting of a single sentence are 999/1000 times not answerable. You don't provide any information at all. What is the name of your source file, which commands are you using to compile and run the code.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Help with code execution

    Addisionally, please go through the Guide For New Members and BB Code List - Java Programming Forum - Learn Java Programming and learn how to post code on this forum.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 2
    Last Post: 08-30-2012, 04:51 PM
  2. Replies: 6
    Last Post: 11-30-2011, 08:39 PM
  3. Replies: 0
    Last Post: 11-04-2011, 01:36 PM
  4. Replies: 10
    Last Post: 11-29-2010, 02:02 PM
  5. how does this code work...explain me the execution please...
    By vital parsley in forum New To Java
    Replies: 3
    Last Post: 07-25-2008, 04:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •