|
Advertisement
|
Forum posts by Eric Hoffheiser:1 page [ 1 ]
Posted in Java Answers Forum, May 2, 2002, 9:37 AM
I've just started with Java, so I don't have any ideas for #1 or #3. But I was thinking for #2 that you could try the following:public class Backwards{public static void main(String[] args){int[] integer = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};// Output integers in reverse orderSystem.out.println("The numbers displayed backwards are: ");for(int i =...
Posted in Java Answers Forum, May 2, 2002, 9:17 AM
Can anyone tell me a way (or the best way) to put data read from a text file into an array? In the text file, I've got String variables and int variables and I'm having a problem assigning my int values to their instance variable counterparts in my support class, called Student. I've made a new Student object:Student x = new Student();but when...
1 page [ 1 ]
|