menu


Subscribe to the blog

Social networks

My page on vk.com
My page on Facebook
My page on Google plus
My page on Twitter

Blog - Vitaly Lesnih

Programming Date of creation: 2018-09-06 Views: 1254

lesnih.info


In order to write an XML document in a java application, you need to place the appropriate code that will execute this command, and also make the settings:  Create a project in the IDE, for example with the name Java_XML (Automatically created package  java_xml, and in it the main class: Java_XML.java). And now, the code for the class: 

...

Programming Date of creation: 2018-09-06 Views: 310

lesnih.info


Reading XML in Java In order to read an XML document from a java application, you need to place the appropriate code that will execute this command, and also make the settings: 1. Create a project in the IDE, for example, with the name Java_XML (Automatically creates a package  java_xml, a...

Programming Date of creation: 2018-09-06 Views: 342

lesnih.info


Java mail - Send email from java via Gmail In order to send an email from a java application, you must place the appropriate code that will execute this command, and also make the settings: 1. Create a project in the IDE, for example with the name Email (Automatically creates an email pack...

Programming Date of creation: 2018-09-05 Views: 205

lesnih.info


INSERT Add data to MySQL - Java In order to add data to the Mysql database, you must: 1.Create a project in the IDE, for example with the name mysql_java (Automatically creates a package mysql_java, and in it the main class: Mysql_java.java) 2. We create another class in this package ...

Programming Date of creation: 2018-09-05 Views: 202

lesnih.info


Update UPDATE data in MySQL - Java In order to update the data in the database Mysql - it is necessary: 1. Create a project in the IDE, for example with the name mysql_java (Automatically creates a package mysql_java, and in it the main class: Mysql_java.java) 2. Create another class ...

Programming Date of creation: 2018-09-04 Views: 218

lesnih.info


Select - Get data from MySQL in Java In order to connect to the Mysql database, you must: 1. Create a project in the IDE, for example with the name mysql_java (Automatically creates a package mysql_java, and in it the main class: Mysql_java.java) 2. Create another class in this packag...

Programming Date of creation: 2018-09-04 Views: 296

lesnih.info


Send POST request to java Below, the post-request code for the java application is placed package postjava;   import java.io.DataOutputStream; import java.net.URL; import javax.net.ssl.HttpsURLConnection;         public class PostJava {         public static ...

Programming Date of creation: 2018-09-02 Views: 268

lesnih.info


Reading a text document in Java import java.io.*;   public class text {       public static void main(String[] args) {                  try(FileReader reader = new FileReader("C:\NewFolder\text.txt")) // Specify the path where the file is located         {            // read           ...

Programming Date of creation: 2018-09-02 Views: 190

lesnih.info


In order to compile a *.jar file into a NetBeans IDE, you must: NetBeans IDE => Run => Clear and assemble the project (Forms) // Shift + F11 => Then the process will start and the system will gradually issue messages: .................................... Fragment start...............

Programming Date of creation: 2018-09-02 Views: 565

lesnih.info


Before you have to be configured Tomcat hosting Installing Apache Tomcat to work in Java JSP 1. Download the library https://javaee.github.io/javamail/ , More you can read about this library here https://wikipedia.org/wiki/JavaMail 2. Add the library to the hosting folder /WEB-INF/lib 3. Create...


Random articles from the blog:


Compile file into the NetBeans IDE

Compile file into the NetBeans IDE
Topic: Programming

Tags: java,netbeans,compile file

Views:190

Post java - Send POST request in Java

Post java - Send POST request in Java
Topic: Programming

Tags: java,post,php,integration,exchange

Views:296

Generator Binary code online

Generator Binary code online
Topic: Programming

Tags: binary code, online resource,generator

Views:1148