I've created this code which should look in the Songs folder and add any .mp3 file to a list. However when I test it it keeps saying File not found and pointing to the exact file it cant find with the name of the song while I dont mention this name anywhere in the code so it must see it at some point. Here is my code I hope anyone knows whats wrong: http://puu.sh/WgWW (d/w its a screenshot) Thanks! :D

Member Avatar
+0 forum 0

Hello, I'm just starting to learn Java, and for a summation program that we started in class, I've been stuck on the question as to why this brings up an error message when I try to build it. Please advise me. [CODE]import java.util.Scanner; public class summation{ public static void main(String[] args){ int n; int s=0; Scanner X=new Scanner(System.in); System.out.print("Enter # of terms: "); n = X.nextInt(); for(int i=1; i <= n; i=i+2); { s= s+ i; } System.out.print(+s); } }[/CODE] The exact probem shows that within the for loop, the i is not found. [CODE]for(int i=1; i <= n; i=i+2); …

Member Avatar
Member Avatar
+0 forum 1

I'm using Visual C# Express 2010, on Windows XP SP3. I took pain to define the var collBlock in the class directly, however, when I try to use it, it works once and then NOT. Google searched all and tried a lot of solution. Error stil comes up. The code below is partial, don't count the '{}', they are correct (VS2010 autocorrect won't allow even the most indifferent mistyping) [CODE]public class DMSecDoc { //...some declares... // private Hashtable collBlock = new Hashtable(); // this works... private int ReadAllBlocks(BinaryReader aReader, Int32 nNumOfBlock) { collBlock.Clear(); try { for (int i = 0; …

Member Avatar
Member Avatar
+0 forum 3

The End.