Results 1 to 2 of 2

Thread: No class made

  1. #1
    ChuckLS is offline Member
    Join Date
    Apr 2009
    Posts
    3
    Rep Power
    0

    Default No class made

    I have compiled- javac- and it seems to work. But when I try java no good. When I check the Dir there is no class file for the program.
    Does someone have a suggestion?
    I am in the same folder doing the same thing I have been doing. I erased another class file for another program in the same folder and re did javac and it made a class file for it. It is just for this one file that it won't make a class file.


    import java.util.*;

    class Repeat {
    public static void main(String[] arguments) {
    String sentence = "Thorium 230 is not a toy.";
    Calendar start = Calendar.getInstance();
    int startMinute = start.get(Calendar.MINUTE);
    int startSecond = start.get(Calendar.SECOND);
    start.roll(Calendar.MINUTE, true);
    int nextMinute = start.get(Calendar.MINUTE);
    int nextSecond = start.get(Calendar.SECOND);
    int count = 0;
    for (count = 0; count < 1000000; count++) {
    System.out.println(sentence);
    GregorianCalendar now = new GregorianCalendar();
    if (now.get(Calendar.MINUTE) >= nextMinute)
    if (now.get(Calendar.SECOND) >= nextSecond)
    break;
    }
    System.out.println("\nI wrote the sentence " + count
    + " times.");
    System.out.println("I have learned my lesson.");
    }
    }



    TKS ChuckLS
    Last edited by ChuckLS; 04-28-2009 at 05:44 PM.

  2. #2
    ChuckLS is offline Member
    Join Date
    Apr 2009
    Posts
    3
    Rep Power
    0

Similar Threads

  1. Replies: 2
    Last Post: 03-22-2009, 07:43 PM
  2. Replies: 8
    Last Post: 03-21-2009, 10:34 AM
  3. Replies: 0
    Last Post: 02-18-2009, 06:20 AM
  4. Using for loops to create a "bridge" made out of hyphens
    By carlodelmundo in forum New To Java
    Replies: 7
    Last Post: 09-21-2008, 12:20 PM
  5. Replies: 0
    Last Post: 05-13-2008, 07:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •