Results 1 to 3 of 3
Like Tree2Likes
  • 2 Post By JosAH

Thread: HI could you review my small proj?

  1. #1
    JAVSA is offline Member
    Join Date
    Jan 2013
    Posts
    2
    Rep Power
    0

    Exclamation HI could you review my small proj?

    this is my project the red color is shown as error in netbeans
    any way
    the red is the error
    the blue is the description
    Java Code:
    
    
    
    public class JAV
            {
        public static void main(String args[])
        {
      System.out.print("enter the number you going to see");
      int Y1,y2,y3,y4,y5,y6,y7,y8,y9,y10,y11,y12,y13,y14,y15 ;
      Scanner mixfm = new Scanner(System.in);
      System.out.print("enter number (4)"); 
      Y1= mixfm.nextInt(); 
      System.out.print("you entered"+Y1);
    if (Y1==4)
    {System.out.println("ok here's the second number (33)");
    Scanner YY2 =new Scanner(System.in);
    y2 = YY2.nextInt();
    if (y2==33)
    {
        System.out.println("thats corecct continue with the number (460)");
        Scanner YY3 =new Scanner(System.in);
    y3= YY3.nextInt();
    if(y3==460)
    {
        System.out.println("thats the corecct final number thanks");
        
    }
    else{System.err.println("err not the corecct number"); return;}
    }
    else{System.err.println("err not the corecct number"); return; }
      
    }
       
    
    else{System.err.println("err not the corecct number");}
      return;
    Scanner inn= new Scanner(System.in);
    (heres shown a error says unreachable)
    Java Code:
    int arrra[];
    arrra = new int[3];
    int con;
    for(con=1 ; con<=3 ; con++)
    {
    System.out.print("Enter the array"+con+" :");
    arrra[con] = inn.nextInt();
    }
    System.out.println("arra[1]");
    System.out.println("arra[2]");
    System.out.println("arra[3]");
    }
    (and here says reached end of file while parsing)





    and i love if you give me 10 new more useful codes or 20 with description like return jbutton putting pictures code and other useful codes thanks
    if you teach java pm me plz we could agree in great price or teach for free :D
    Last edited by JAVSA; 01-12-2013 at 08:27 AM.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,309
    Blog Entries
    7
    Rep Power
    20

    Default Re: HI could you review my small proj?

    Don't create multiple scanners; the Scanner 'mixfm' is enough; your indentation stinks; reformat your code and count the { ... } pairs; they're incorrect now; nobody charges for readabe variable names so rename them to something sensible. A construct if-else-else is always illegal (the last 'else' part should go away).

    kind regards,

    Jos
    JAVSA and Fubarable like this.
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    JAVSA is offline Member
    Join Date
    Jan 2013
    Posts
    2
    Rep Power
    0

    Default Re: HI could you review my small proj?

    thanks that's really useful thank you so much :*

Similar Threads

  1. Replies: 0
    Last Post: 09-15-2011, 12:02 PM
  2. Voip review
    By callsvoip in forum Reviews / Advertising
    Replies: 0
    Last Post: 02-22-2010, 02:16 PM
  3. help needed on proj
    By billadada in forum New To Java
    Replies: 5
    Last Post: 02-04-2010, 10:13 PM
  4. My semester proj.
    By ramsrocker in forum New To Java
    Replies: 4
    Last Post: 03-08-2009, 05:25 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
  •