Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,197,454 members, 7,964,856 topics. Date: Wednesday, 02 October 2024 at 10:38 PM |
Nairaland Forum / Drakula941's Profile / Drakula941's Posts
(1) (of 1 pages)
Programming / Re: Simple Code Challenge: C#, Java, C, C++ by drakula941: 8:05pm On Nov 08, 2011 |
This my code in java, i took d array in 1 variable, is dat fyn?? class codes{ public static void main(String arg[]){ int code[]={0,8,1,0,0,0,8,6,7,8,9,5,2,6,3,0,7,4,1,1,0,0,7,0,0,8,6,7,8,9,5,9,1,1,3,0,1,0,0,0,8,6,7,8,9,1,3,0,0,8,5,2,6,3,0,7,4,1,1,0,0,7,0,0,8,6,7,8,9,5,9,1,1,0,5,2,6,3,0,7,4,1,1,0,0,7,0,0,8,6,7,8,9,5,0,0,8,6,7,8,9,1,3,0,0,8,9,1}; for(int x=0;x<code.length;x++){ try{ if(code[x]==1&&code[x+1]==3&&code[x+2]==0&&code[x+3]==0&&code[x+4]== {System.out.println("13008"} }catch(Exception ex){} } } } |
(1) (of 1 pages)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 5 |