Results 1 to 2 of 2
  1. #1
    javaplus is offline Member
    Join Date
    Nov 2007
    Posts
    97
    Rep Power
    0

    Default Removing empty lines from code using Eclipse

    I have a lot of Java classes with empty line feeds (block of line feeds). How can I remove those using Eclipse? Any easy way?

    Java Code:
    System.out.println();
            System.out.println("+===============================================+");
            System.out.println("|  ***                                     ***  |");
            System.out.println("|  ***        ARRAY DECLARATION            ***  |");
        
    
    
    
        System.out.println("|  ***                                     ***  |");
            System.out.println("+===============================================+");
    
    
    
            System.out.println();
    
    
    
    
            // Example 1
            // ---------
            // First declare a reference and then construct it.
            int[] ExampleArray1;
            ExampleArray1 = new int[24];

  2. #2
    staykovmarin is offline Senior Member
    Join Date
    Nov 2007
    Location
    Newport, WA
    Posts
    141
    Rep Power
    0

    Default

    Window > Preferences > Java > Code Style > Clean Up

    Edit it in there, you can select to allow spaces or not.

Similar Threads

  1. Empty ResultSet
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-09-2008, 09:36 PM
  2. Joining lines in Eclipse
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-04-2007, 12:17 PM
  3. how to debug java code in eclipse
    By rajesh058 in forum Advanced Java
    Replies: 3
    Last Post: 07-26-2007, 12:19 AM
  4. Unify these 3 lines of code
    By ulykidjoe in forum Advanced Java
    Replies: 4
    Last Post: 07-13-2007, 02:15 PM
  5. Replies: 1
    Last Post: 04-26-2007, 04:52 PM

Posting Permissions

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