Search:

Type: Posts; User: efluvio

Page 1 of 2 1 2

Search: Search took 0.15 seconds.

  1. Replies
    4
    Views
    1,119

    Re: How to randomize the if loops?

    No i mean ,when i call this method it should check randomly first x or first y or the other , and then continue the rest again randomly.I tried to do that but couldn't succeed and i think i should...
  2. Replies
    4
    Views
    1,119

    How to randomize the if loops?

    I have a method something like this
    if(x = 1){
    statement1;
    break;
    }
    if(y = 1){
    statement2;
    break;
    }...
  3. Re: Are we allowed to make a post here about our works in progress?

    visit quicklearningjava.blogspot.com to learn java
  4. Replies
    11
    Views
    1,600

    Re: Programm does not start. Help Please!

    The Method "Ende" is in the Same class in which there is the "main" method, that caused the syntax error.
    If I write


    public static void main(String[] args) {
    Spielsystem Schiff = new...
  5. Replies
    11
    Views
    1,600

    Re: Programm does not start. Help Please!

    How can I programm this? Didn't I created a new instance with "new Spielsystem();"?
  6. Replies
    11
    Views
    1,600

    Re: Programm does not start. Help Please!

    ende() is in the same class as the "Error"-Main Class. The Code creates a "new Spielsystem" of that class.
    Where should I enter the data? I assume it is




    public boolean ende() {
    ...
  7. Replies
    11
    Views
    1,600

    Re: Programm does not start. Help Please!

    Do I have to put this in the method "ende" itself?
    Which instances should I put in there?
  8. Replies
    11
    Views
    1,600

    Re: Programm does not start. Help Please!

    Thanks! will do that!
  9. Replies
    11
    Views
    1,600

    Programm does not start. Help Please!

    Hey I have written this code:
    When I am executing it, I have problems with my main class. What can I do?
    (German Student)

    Programm should just start the methods in 2 other classes.

    ERROR...
  10. Replies
    1
    Views
    1,362

    Confused About Interface Classes

    Diagram:1796
    ===========================================================
    Constructors:
    public ConsLoIF(ImageFile first, ILoIF rest) { }
    public MtLoIF() {}
    public ImageFile(String name, int...
  11. Thread: JDBC Error

    by efluvio
    Replies
    1
    Views
    1,185

    JDBC Error

    Hi guys,

    I am currently trying to select a variable from my database and keep receiving error. Any suggestions?

    at...
  12. Help with splitting string in PDF Generator Function

    Hi,

    I am currently building a Java software that develops a PDF file based on a table. However, I am having an issue with getting all the information into the column of the PDF and need help. ...
  13. How to remove any BOM from UTF-8 encoded text files

    EDIT: Solved with Apache Commons IO BOMInputStream
    http://commons.apache.org/io/api-release/org/apache/commons/io/input/BOMInputStream.html
    -----------------
    I have some text files starting with ...
  14. Replies
    2
    Views
    12,542

    Re: Convert file from any encoding to UTF-8

    Thank you. I've found that when specifying encoding for the output is necessary as well to specify it for the input:

    BufferedReader input = new BufferedReader(new InputStreamReader(new...
  15. Replies
    2
    Views
    12,542

    Convert file from any encoding to UTF-8

    I have files that are either encoded in ASCII (Windows-1252) or UTF-8 (with or without BOM encoding). How can I convert them from their encoding to UTF-8, like I could do with text editors like...
  16. Replies
    1
    Views
    4,677

    Convert String from ANSI to UTF-8

    How can I convert a string from ANSI to UTF-8?
  17. Replies
    1
    Views
    4,473

    Change file encoding from ANSI to UTF-8

    I read from a file that may have ANSI or UTF-8 encoding, and by default BufferedWriter(new FileWriter(outFile) saves the file in ANSI. I would like to save it in UTF-8. How could I do that?
  18. [SOLVED] Re: How to decode ENCODING=QUOTED-PRINTABLE encoded data?

    I've solved it using the org.apache.commons.codec package from Apache. The source java files are available for download:
    Codec - Home

    It contains the method...
  19. [SOLVED] Re: How to decode ENCODING=QUOTED-PRINTABLE encoded data?

    It doesn't work if there are some characters (that are not supposed to be in a URL):


    Exception in thread "main" java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape...
  20. [SOLVED] Re: How to decode ENCODING=QUOTED-PRINTABLE encoded data?

    Yes, but convert all the cases.

    You can check here a webpage that does online conversion, but I would like to do it with software: Encode/Decode Quoted Printable - Webatic
  21. [SOLVED] Re: How to decode ENCODING=QUOTED-PRINTABLE encoded data?

    The source is a contact VCARD, and each entry goes on one line if not quoted printable but goes in one or more is used the ENCODING=QUOTED-PRINTABLE string, indicating an ending with the '='...
  22. [SOLVED] How to decode ENCODING=QUOTED-PRINTABLE encoded data?

    I want to decode data with the encoding ENCODING=QUOTED-PRINTABLE;CHARSET=UTF-8:

    to standard text. For example =0D=0A turns into \n and so on, but I was unable to find a specific standard java...
  23. Replies
    2
    Views
    7,732

    Re: How to install the JDK on Ubuntu Linux

    what about openjdk?
  24. Replies
    3
    Views
    2,996

    [SOLVED] Re: Send File (path) as argument to method

    It was solved modifying the convert.java:

    public class convert {

    /**
    * @param args
    */
    public static void getnumber(String args) {
    // TODO Auto-generated method stub
  25. Replies
    3
    Views
    2,996

    [SOLVED] Re: Send File (path) as argument to method

    It is properly declared. The list[] is a list of files read from a folder, and I want to pass them one by one to a method to do text file conversion.
Results 1 to 25 of 26
Page 1 of 2 1 2