No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
12 Posted Topics
New to VB.NET How do you create a label which is'nt associated with a handle so that it displays the data when the form is loaded with clicking it etc? | |
[CODE] import java.util.Scanner; import java.io.*; public class program1 { Scanner filescan = null; public program1(){ try { filescan = new Scanner (new File("t.txt")); } catch (FileNotFoundException fe){ fe.printStackTrace(); } } public static void main(String[] args)throws IOException { printFile(); } public static void printFile()throws IOException { int num; while(filescan.hasNextInt()){ num= filescan.nextInt(); … | |
how do i declare a scanner object, filescan publicly so that i may use filescan in varios functions i found this statement in a forum----> private static Scanner scanner = new Scanner (1 3 4 4"); when I modified it to-----> public static Scanner filescan = new Scanner(new File("inputdata.txt")); //declared … | |
Im attemtping to return the next value in this suequence recursively 1, 4, 11, 34, 101 this is what i've done thus far, im not sure how to pass this list to the function to compute the next value which i believe to be 304. can some explain how i … | |
can someone help me understand what i'm doing wrong here. attempted to run, program builds but no output is generated and the compiler does'nt generate an error message. thank you all. [ICODE]import java.util.Scanner; import java.io.*; import java.util.ArrayList; public class arrayManipulator { public static void main(String[] args) throws IOException { ArrayList<Integer> … | |
can someone explain how i could go about applying this recursive method to a string of integers from a text file. so far i have read the string into an int array in my main using a tokenizer and im unsure of how i should manipulate the array now. also … | |
can someone explain to me how i can go about implementing a string from a jtextfield and storing it to a file please. I would really appreciate some sample code on this one. Thank you | |
does java have a ' system ("PAUSE") ' like c++....if so what is the syntax to do it. ty | |
im having problems figuring out how to print this array in reverse.I believe it might be a logical issue. I don't want the answer. I'm thinkin my row must be initialized to the matrix.length. can someone give me a few hints as to go about this. public static void printMatrixReverse(int … | |
can someone explain to me how i can pass the array "test" and the int "total" back to the main by reference. public static void CalculateAverage() throws IOException { int[] test=new int[7]; int count; int total=0; for (count = 0;count < 5; count++) { test[count] = Integer.parseInt(tokenizer.nextToken()); total = test[count] … | |
currently my program only reads in the one first name and last name with 5 grades and computes the average from the first line of my input file. eg. Albert Lake 54 23 54 32 12 average test score 35 im trying to edit this code so that the file … | |
sup guys im trying to implement a nested for loop for a 2 dimension array that initializes the array to the character '*'. but its just printing out garbage, i think im messing up on my syntax :sad:.....some help would be appreciated here is what i got so for: char … |
The End.