Searching the Internet

There is so much information on the internet (which may or may not be true). Sometimes you can’t search all of it yourself. Fortunately, many languages have a way to access the web. Python has the urllib.request library which allows you to access a website. Java has net.URL and net.URLconnection libraries. Not to leave C# out, webClient method. After adding the library and successfully connecting, the information can be manipulated, stored, or you decide.

Hellooo [Post 0]

Tradition states that the first program in a new language is Hello World. In keeping with tradition, the first post includes Hello World in Python and Java. Other languages might make an appearance later on.

 

Java 

public class Hello{
   public static void main(String[] args){
      System.out.println(“Hello World”)
}

 

Python

 print(“Hello World”)

Note: Java code was tested at tutorialspoint.com and Python on the python interpreter. Java has to be compiled and requires a class, while short lines of Python code can be run on an included interpreter in a terminal window.