In this program we will read a file in the form of a byte array. We can do it very easily.
Tutorial Details:
In this program we will read a file in the form of a byte array. We can do it very easily. Firstly we will create an object of File class and pass the name of the file which we want to read, in the constructor of File class. We will use DataInputStream to read primitive data types.
Sending Data to a Port in UDP Format
Sending Data to a Port in UDP Format
The ByteBuffer Class (from the java.nio package) helps you to write data in UDP by converting them to the respective bytes they generally occupy. This is especially helpful when trying to control network traffic.
T
Very simple `Hello world' java program that prints HelloWorld
Very simple `Hello world' java program that prints HelloWorld
Hello World Java
Simple Java Program for beginners (The HelloWorld.java)
Java is powerful programming language and it is used to develop robust applications. Writing a simple Hello
Reading Request Information
Reading Request Information
Retrieving the data posted to a JSP file from HTML file
Now I will show you how to retrieve the data posted from a HTML file in a JSP page. Consider an html page that prompts the user to enter his/her name, let's call