ucl......?
Type: Posts; User: bookface
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...
Any idea how I can print my source code in an internet browser?
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...
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...
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...
SO SORRRYYYY FOR THE DEROGATORY VARIABLE NAMESSSSSSSSS! I THOUGHT I READJUSTED BEFORE COPY PASTING. IT'S ME EXPRESSING THE FRUSTRATION :p! SORRY ONCE AGAIN!
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;...
Oh and do I have to insert <html> in the first position of the ArrayList?
Here's my piece of code:
public void studyText(String originalText) {
textInArray = toArray(originalText);
Iterator arrayText = textInArray.iterator();
...
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...