aboodmanna's blog

By aboodmanna, 9 years ago, In English

Hello everyone how i can sum a number (n) from array with at leaset specfic number (k) in JAVA .

like e.x ) n= 18 , k= 2

18 = 7 + 11 . array[2, 3, 5, 7, 11, 13, 17, 19, 23] ............................................... e.x) n = 11 , k= 3 11= 5 + 4 + 2 .

array[2, 3, 5, 4, 11, 13, 6, 19, 23]

Full text and comments »

  • Vote: I like it
  • -22
  • Vote: I do not like it

By aboodmanna, 9 years ago, In English

Hello EveryOne how can i read file (.in) in java 7 ?

im using Scanner:

Scanner input=new Scanner(new File("xyz.in")); // but still give me RunTime error

how can i fixed this issue ?

Full text and comments »

  • Vote: I like it
  • -12
  • Vote: I do not like it