Search:

Type: Posts; User: bookface

Search: Search took 0.11 seconds.

  1. Re: how to transform an html file to a web site in java

    ucl......?
  2. Replies
    4
    Views
    2,127

    Re: print code to browser

    Haha thanks!

    In brief, my program reads a soure code saved in txt file, formats it accordingly (ie highlights string in green, keywords in orange, comments in grey and makes the appropriate...
  3. Replies
    4
    Views
    2,127

    print code to browser

    Any idea how I can print my source code in an internet browser?
  4. Replies
    1
    Views
    3,587

    Add white spices before the String element

    This will bring to mind the typical create a star triangle with the right angle on the right, whereby each line has a number of white spaces preceding the *, ie
    *
    **
    ***
    ****
    and so...
  5. Replies
    3
    Views
    1,890

    Re: unsafe operations note??

    Thanks once again copeg.

    If I apply your split method, it will "deform" the string so that when I come to convert the ArrayList back into a string, the white space will be missing (if I initially...
  6. Thread: how to indent

    by bookface
    Replies
    0
    Views
    1,107

    how to indent

    In brief, I'm feeding my code a piece of unformatted source code. My code transforms the text into a string, then list in order to easily iterate through the latter and format depending on the...
  7. Replies
    3
    Views
    1,890

    Re: unsafe operations note??

    SO SORRRYYYY FOR THE DEROGATORY VARIABLE NAMESSSSSSSSS! I THOUGHT I READJUSTED BEFORE COPY PASTING. IT'S ME EXPRESSING THE FRUSTRATION :p! SORRY ONCE AGAIN!
  8. Replies
    3
    Views
    1,890

    unsafe operations note??

    import java.util.*;

    public class iterates {

    private ArrayList<String> arrayOfString = new ArrayList();
    private String input = "hui hello { q...} qdf qkfh youu";
    private int n = 0;...
  9. Replies
    4
    Views
    7,784

    Re: Implementing HTML tags in Java Source Code

    Oh and do I have to insert <html> in the first position of the ArrayList?
  10. Replies
    4
    Views
    7,784

    Re: Implementing HTML tags in Java Source Code

    Here's my piece of code:


    public void studyText(String originalText) {

    textInArray = toArray(originalText);
    Iterator arrayText = textInArray.iterator();

    ...
  11. Replies
    4
    Views
    7,784

    Implementing HTML tags in Java Source Code

    On finding a '{' in the ArrayList<String> a, I want my code to insert a line break in the next index position. How do I insert the line break using HTML tags? I know HTML line break is represented...
Results 1 to 11 of 11