Results 1 to 3 of 3
- 01-12-2013, 08:24 AM #1
Member
- Join Date
- Jan 2013
- Posts
- 2
- Rep Power
- 0
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
Scanner inn= new Scanner(System.in);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;
(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.gif)
if you teach java pm me plz we could agree in great price or teach for free :DLast edited by JAVSA; 01-12-2013 at 08:27 AM.
- 01-12-2013, 09:29 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,408
- Blog Entries
- 7
- Rep Power
- 17
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,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 01-12-2013, 10:14 AM #3
Member
- Join Date
- Jan 2013
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
Review request: Yii 1.1 Application Development Cookbook (free review copies)
By jiteshg in forum Reviews / AdvertisingReplies: 0Last Post: 09-15-2011, 12:02 PM -
Voip review
By callsvoip in forum Reviews / AdvertisingReplies: 0Last Post: 02-22-2010, 02:16 PM -
help needed on proj
By billadada in forum New To JavaReplies: 5Last Post: 02-04-2010, 10:13 PM -
My semester proj.
By ramsrocker in forum New To JavaReplies: 4Last Post: 03-08-2009, 05:25 AM


2Likes
LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks