Search:

Type: Posts; User: my21

Page 1 of 2 1 2

Search: Search took 0.17 seconds.

  1. Replies
    0
    Views
    240

    How to sort integers on a file ascendingly?

    nevermind
  2. Thread: ascending sort

    by my21
    Replies
    1
    Views
    190

    ascending sort

    Hi, i'm having problems making the sort be in ascending order instead of descending order.


    public static void main(String[] args) throws IOException, FileNotFoundException {
    int[]...
  3. Replies
    1
    Views
    330

    problems with event handlers

    I have a GUI project, but the instructions I'm given on what is supposed to happen in each event handler is uncleared.
    For one of them, it is supposed to delete a file made in another event handler....
  4. Replies
    12
    Views
    908

    Re: Calling up array methods from main

    I got it! Thanks for your help!
  5. Replies
    13
    Views
    597

    Re: Writing Integers to a file

    I don't know how to do that because I thought one of the number I typed in would get printed onto the file.
  6. Thread: parsecard method

    by my21
    Replies
    1
    Views
    452

    parsecard method

    I don't know where to begin in writing this method. Any help would be great!

    Write a class method for the Card class called parseCard that takes a String and returns
    the corresponding card. You...
  7. Replies
    12
    Views
    908

    outputting

    I'm having problems outputting or testing the methods by main.


    public static void main(String[] args) {

    }
    public static int randomInt(int low, int high) {
    int difference =...
  8. Replies
    12
    Views
    908

    Re: Calling up array methods from main

    I still don't understand what you mean. Could you provide me with an example?
  9. Replies
    13
    Views
    597

    Re: Writing Integers to a file

    How do I fix this error?
  10. Replies
    13
    Views
    597

    Re: Writing Integers to a file

    This is what happens
    Please enter 7 scores
    1
    2
    3
    4
    5
    6
    7
    5
  11. Replies
    12
    Views
    908

    Calling up array methods from main

    I'm having trouble just calling up the methods from main. I just need to test them to see if they work.


    public static void main(String[] args) {
    // TODO code application logic here
    ...
  12. Replies
    13
    Views
    597

    Re: Writing Integers to a file

    It still has the same problems as before.
  13. Replies
    13
    Views
    597

    Re: Writing Integers to a file

    Is this better?


    public static void writeToFile (String filename) throws IOException {
    BufferedWriter outputWriter = new BufferedWriter(new FileWriter(filename));
    Scanner...
  14. Replies
    13
    Views
    597

    Re: Writing Integers to a file

    I fixed it, but the problem now is that it still takes more than 7 scores...and it does not seem to just stop.
  15. Replies
    2
    Views
    443

    calling up and printing an arrayHistogram

    I'm writing a method called arrayhist that has an array of 30 random integers and returns a new histogram array that has 11 elements with this content:
    element 0 -- number of elements in the array...
  16. Replies
    13
    Views
    597

    Writing Integers to a file

    I'm trying to ask the user to enter 7 scores by writetofile method by a loop that get written on a file on a separate line.

    This is what I have so far:


    public static void main(String[] args)...
  17. Replies
    1
    Views
    196

    random number array

    I'm trying to write a method called randomInt that takes two integers,low and high, and that returns a random integer x so that low is less than or equal to x which is less than high.


    public...
  18. Replies
    11
    Views
    435

    Re: 0-10Factorial table

    I'm good, thanks for your help!
  19. Re: Rational program calling up from different file but in same package

    Got it thanks!!
  20. Replies
    11
    Views
    435

    Re: 0-10Factorial table

    I do not have the right iterative factorial algorithm
  21. Rational program calling up from different file but in same package

    I'm having trouble calling up the methods that are in the constructor file from the main method.
    Here's the code in the main method:


    public static void main(String[] args) {
    // Create...
  22. How to call printDate method to output the dates?

    Here's my main file


    public static void main(String[] args) {

    // Born Aug 21, 1996
    int birthYear = 1996;
    int birthDay = 21;
    int birthMonth = 8;
  23. Replies
    11
    Views
    435

    Re: 0-10Factorial table

    something straightforward, i'm pretty sure the recursive way needs the method to be an integer but that requires return statements.
  24. Replies
    11
    Views
    435

    Re: 0-10Factorial table

    how to put it to code
  25. Replies
    11
    Views
    435

    Re: 0-10Factorial table

    This is only for the numbers 1-30, but I don't know how to calculate its factorial and match it up with the given integer.
    public static void factorial() {
    int sum, number = 10;
    ...
Results 1 to 25 of 35
Page 1 of 2 1 2