Search:

Type: Posts; User: redbull

Page 1 of 2 1 2

Search: Search took 0.21 seconds.

  1. Don't Know How to Solve this problem that involves recursion and factorial. Stuck. Please HELP!

    Hello. I have the following problem. I don't know if it's a knapsack problem, or what problem it exactly is. My java skills are not the greatest, so please help. Here is the problem. Then, I will...
  2. Replies
    1
    Views
    221

    Can anybody explain this code in details

    Hello,
    Can anybody explain each lines of this code in details? I understand most of it, but I have a couple of problems with some of the logic and coding.



    class Josephus
    {
    static...
  3. Replies
    7
    Views
    370

    Re: Code is not printing how I want it to

    ok I would appreciate all the help and explaining that I can get
  4. Replies
    7
    Views
    370

    Re: Code is not printing how I want it to

    I have just corrected the program to the one I submitted for my assignment. This was made in eclipse, and checkstyle was used. And the instructor wants everything to be final, all the numbers to be...
  5. Replies
    7
    Views
    370

    Re: Code is not printing how I want it to

    I did, but someone deleted my original post... And i spent 20 minutes making it.. Bummer!

    --- Update ---

    I'll start over again

    --- Update ---

    OK, here is an assignment that I already...
  6. Replies
    7
    Views
    370

    Code is not printing how I want it to

    Hello, I have the following code that I need help in:



    import java.io.File;
    import java.io.IOException;
    import java.math.BigDecimal;
    import java.math.BigInteger;
    import...
  7. Help with java code that I can't figure out

    Hello, I have the following java code that's been giving me trouble to figure out. I'm in my second semester of java, so I should figure this out by now. But, it's been a little tough for me. Before...
  8. Thread: Question

    by redbull
    Replies
    0
    Views
    149

    Question

    How do i delete my previous threads and posts? They might provide a free sample of code to people taking the same courses at my school. I want to delete all my programming threads. thank you
  9. [SOLVED] Re: How to I possibly compress a java string to say byte space?

    OK, the assignment is past due and was extra credit. How do I do this? Reduce my program from 930 bytes to under 793 bytes. And most of my program is java string. Last, I cannot import any files into...
  10. [SOLVED] Re: How to I possibly compress a java string to say byte space?

    i am totally lost...

    --- Update ---

    ok, maybe it involves javap -c <class>....
  11. [SOLVED] Re: How to I possibly compress a java string to say byte space?

    how do you do that? He did hint on changing the extension, possibly to a text

    --- Update ---

    No, the program can't take any input. I heard someone else mention something about converting this...
  12. [SOLVED] Re: How to I possibly compress a java string to say byte space?

    that's what I will have to do. I am going to use an external program to get the hex codes for this string, compress that string in hex codes, then bring these hex codes into my program. The...
  13. [SOLVED] Re: How to I possibly compress a java string to say byte space?

    I am counting bytes of the java file. Like suppose I save it to the desktop, I'll right click it, check the properties, and check the size there.

    I cannot pass in any inputs for this. Here's what...
  14. [SOLVED] Re: How to I possibly compress a java string to say byte space?

    ok, I have another idea. I'm going to use an external program to convert string to ascii. Then I am going to copy and paste that into a java program, and compress that ascii code. Will that work? But...
  15. [SOLVED] Re: How to I possibly compress a java string to say byte space?

    ok I just added the "+" at the end of end line, to make it look more readable. But it adds a "+", which are extra characters.

    --- Update ---



    please, this is not the time to be asking these...
  16. [SOLVED] Re: How to I possibly compress a java string to say byte space?

    This is what the teacher said:


    < The total number of characters in the program should be fewer that the total number of characters in the pledge (655 printable, 793 total). Your programs file...
  17. [SOLVED] Re: How to I possibly compress a java string to say byte space?

    how do i undelete? if not, I can repost

    --- Update ---



    <I pledge that every program with my name on it shall be written by me
    (and my co-authors, if any) and that I fully understand the...
  18. [SOLVED] Re: How to I possibly compress a java string to say byte space?

    I deleted this
  19. [SOLVED] Re: How to I possibly compress a java string to say byte space?

    I Delete this
  20. [SOLVED] How to I possibly compress a java string to say byte space?

    [/COLOR]

    <I pledge that every program with my name on it shall be written by me
    (and my co-authors, if any) and that I fully understand the program.
    Every program I submit shall be entirely my...
  21. Re: I'M ABOUT TO FAIL MY CLASS... PLEASE HELPPPP!!!!

    Ok, without the PDF, all the words are going to be jumbled up. Here's what I am talking about



    So here's a brief summary of the program and of my problems:
    First, I'm having problems with the...
  22. I'M ABOUT TO FAIL MY CLASS... PLEASE HELPPPP!!!!

    Hello,
    I was given an assignment, of which I have spent the WHOLE ENTIRE DAY today AND yesterday working on. I am confused of where to start though. Here is the link to the assignment:...
  23. [SOLVED] Re: Helpppp meeeee, I am stuckkkk and probably going to get violent any minute!!!!

    also, if you look at string 'a1", i used ps.next() instead of ps.nextLine()... I thought nextLine was unnecessary. Why did you use nextLine for both of yours in your example?
  24. [SOLVED] Re: Helpppp meeeee, I am stuckkkk and probably going to get violent any minute!!!!

    I AMMMMMMMMMMM A GENIUSSSSSSSSSSSSSSSSS MUAHAHHA BUHAHAHA BUHAHA MUHAHAHHA.... I AM DA BEST PROGRAMMER EVER.

    real talk, thanks for your help me...

    unfortunately I have a lot of unfinished...
  25. [SOLVED] Re: Helpppp meeeee, I am stuckkkk and probably going to get violent any minute!!!!

    ok I got my code working, but it has many logic errors... the coefficients can only be one number. how can i get it to read if it's one of two numbers. The substring is only coded for one digit...
Results 1 to 25 of 48
Page 1 of 2 1 2