CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: hugo84

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Thread: Java IO Problem

    by hugo84
    Replies
    1
    Views
    891

    Java IO Problem

    Hi Guys I have a textfile in the following format, the integer value before the ":" delimeter states the column where the value after the ":" should be stored in a 2D array. For Eg: 21:1.00, this...
  2. Thread: Scanner I/O

    by hugo84
    Replies
    5
    Views
    1,245

    Re: Scanner I/O

    why is it not printing anything out? whats wrong with it?


    <code>
    Scanner fs = new Scanner(filename).useDelimiter("<");


    while (fs.hasNext())...
  3. Thread: Scanner I/O

    by hugo84
    Replies
    5
    Views
    1,245

    Scanner I/O

    i have a textfile to read from and i need to retrieve the ID which is (AAW192.21.313) and the text which is encoded between the <TEXT> and </TEXT> tags. How do i go about doing it using scanner...
  4. Replies
    6
    Views
    15,216

    Random Number Generator help!

    Hi i am trying to print 6 numbers randomly..however i do not want any of the numbers to be a duplicate. Could you help me see what is wrong with my codes/flow? as i am still getting duplicates....
  5. Replies
    4
    Views
    846

    Re: Garbage Collection

    ok. thanks for all the inputs.. noted
  6. Replies
    4
    Views
    846

    Garbage Collection

    How do you determine when to use System.gc? before the last line of the program?seems pointless? how about in the middle of the program? Please explain..thanks
  7. Replies
    2
    Views
    932

    Re: simple array problem

    Yes how do i print them seperately? im trying to print the returned value v

    for(int i=0; i < array1.length; i++){
    System.out.println(squareVector(array1[i]));
    }
    ...
  8. Replies
    2
    Views
    932

    simple array problem

    How do i print out the answer of v[i] *=v[i]; in squareVector in main method? i get [D@19821f


    public class arrays2{
    public static void main(String[] args){
    double []...
  9. Thread: Java IO problem

    by hugo84
    Replies
    11
    Views
    1,908

    Re: Java IO problem

    Q1: Sorry dlorde could you explain to me how does private static final String NEWLINE = System.getProperty("line.separator"); this work

    Q2: Scanner abbrFullName = new Scanner("");
    if...
  10. Thread: Java IO problem

    by hugo84
    Replies
    11
    Views
    1,908

    Re: Java IO problem

    Omg ur so gay...i really have nothing to say about ur coding.. Let me digest some of ur codes.. i will be back! Thanks for your help once again.
  11. Thread: Java IO problem

    by hugo84
    Replies
    11
    Views
    1,908

    Re: Java IO problem

    Thanks dlorde for the effort you put in to helpe me. Appreciate it dude. No issues about you mistaking me for another post. =)
    1 more question how do i do paragraphing as per what looked like in the...
  12. Thread: Java IO problem

    by hugo84
    Replies
    11
    Views
    1,908

    Re: Java IO problem

    So you want to know how to limit the output so it isn't greater than max_linewidth ? Yes

    now you post a snippet of code with no context at all: I posted my whole line of code in the 1st post
  13. Thread: Java IO problem

    by hugo84
    Replies
    11
    Views
    1,908

    Re: Java IO problem

    yah.. i did it here.. problem is it only prints the 1st line..which is whats shown below. It dosent print onto the file and also no matter what linewidth i set, it dosent compare. What could be the...
  14. Thread: Java IO problem

    by hugo84
    Replies
    11
    Views
    1,908

    Java IO problem

    Hi i need help.. Im actually trying to read a file line by line from the input text file and then write word by word into the output text file. In case a word is found to match exactly an...
  15. Thread: Java help!

    by hugo84
    Replies
    1
    Views
    1,043

    Java help!

    Hi i need help in debuging this error.. How can i pass the variable abbrName into this method? then append fullname into abbreviations[count-1].addFullName(fullname); then call back to constructor?...
  16. Thread: Java I/O

    by hugo84
    Replies
    0
    Views
    602

    Java I/O

    Sorry please delete post..
  17. Replies
    3
    Views
    11,504

    Re: PrintWriter vs BufferedWriter

    hmm.So can i say generally we should use BufferedWriter?
  18. Replies
    3
    Views
    11,504

    PrintWriter vs BufferedWriter

    Whats the difference between a PrintWriter and a BufferedWriter. In what cases should we use them? or can we just choose anyone of them?
  19. Thread: Arrays

    by hugo84
    Replies
    13
    Views
    3,022

    Re: Arrays

    ok got it arleady.. thanks for the pointer
  20. Thread: Arrays

    by hugo84
    Replies
    13
    Views
    3,022

    Re: Arrays

    ok got it.. thanks.. 1 question why do you use c = i &#37; keyword.length();
  21. Thread: Arrays

    by hugo84
    Replies
    13
    Views
    3,022

    Re: Arrays

    Ive changed my codes.. however i cant encrypt anything more than the length of my keyword could some1 please help me on this? also i dont know why i get a null infront before the encryption as shown...
  22. Thread: Arrays

    by hugo84
    Replies
    13
    Views
    3,022

    Re: Arrays

    Why is this giving me arrayindexoutofboundsexception??






    A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
    B C D E F G H I J K L M N O P Q R S T U V W X Y Z A
    C D E F G H I J K L M...
  23. Thread: Arrays

    by hugo84
    Replies
    13
    Views
    3,022

    Re: Arrays

    hmm ok in this case how am i going to print this out in this format



    a b c d e f g h i j k l m n o p q r s t u v w x y z
    a A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
    b B C D E F G...
  24. Thread: Arrays

    by hugo84
    Replies
    13
    Views
    3,022

    Arrays

    Hi.. Why is it that when i print the output would show all those junk at the bottom how do i make them print properly in chars? The idea is to printout this table below



    import...
  25. Thread: arrays problem

    by hugo84
    Replies
    9
    Views
    1,064

    Re: arrays problem

    Thanks for your pointer. Works now.
Results 1 to 25 of 53
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured