io
Invio di una richiesta POST Java senza chiamare getInputStream()
Vorrei inviare una richiesta POST in Java. Al momento, lo faccio in questo modo:
URL url = new URL("myurl");
URLConnection ... verificato un problema con PrintStream? Non dovrebbe importare se prendo un PrintStream, PrintWriter o qualcos'altro, giusto?
I / O del filo di misurazione in Java
Voglio essere in grado di misurare l'I/O del thread attraverso il codice sulla mia applicazione live/in esecuzione. Finora la ... esecuzione e bloccare la lettura/scrittura media di B / Sec nell'ultimo minuto. Voglio ottenere gli stessi dati ma per thread
Java-output del testo dal file come emulazione della tastiera
Se avessi un file numbers.txt con la seguente stringa:
*1222223* @4555556 !7888889! $19.99
Come potrei leggere quella line ... n'azione che la mia azienda ha bisogno di implementare in un semplice programma, ma siamo mal equipaggiati con Java-Know-How.
Java simple chat-Invio di messaggi a tutti i client
Sto imparando a programmare in Java e ho deciso che scriverò un semplice programma di chat.
Ho già scritto le classi Server, ... if((message=in.readLine())!=null)
System.out.println(message);
}
}
}
}
Perché riprendere il download di download di file danneggiati nell'applicazione Java?
Nella mia applicazione web Java Struts base , ho implementato la funzionalità di download con pause/resume. lasciami spiegare ... logger.error("-- Client Aborted Download --");
break;
}
}
Checking the input data BufferedReader
I started studying Java. I got to the input from the console. There are two ways, or I found only two: a scanner and a buffer ... correct code, for example, to enter an int value. I understand that you need to check for non-emptiness and the type of int?
Using the split method of the String class in Java
At the moment, I am studying Input-Output from books. The task is to get 2 numeric values from the keyboard input stream, whi ... }
}
catch(IOException exc)
{
System.out.print("Ошибка ввода вывода");
}
}
}
Why is an empty file not written in java?
There is a code. I wanted to just write an empty file.
public class FileTest {
public static void main(String[] args) {
... nd automatically create a new file? Why to create a new file in a directory, you need to go to should I write something down?
Java. IO. Encoding errors when reading a file
I have this method that reads the file:
private String fileContent = "";
void writeFile(String path) {
... file from which I read the UTF-8 encoding and in the development environment I have UTF-8 is. Can you tell me how to fix it?