Hello Git
A beginner's tutorial on using Git and GitLab
Search for a command to run...
A beginner's tutorial on using Git and GitLab
I have been a professional programmer for over 30 years. Programming is a lifelong journey of learning, practice, and improvement. During my career, I have found different ways to improve my programming skills. I often share tips on Twitter. Here are...
Some Java programs need input from the user. To accept input from the user, use the Scanner class. The Scanner class has methods that accept different types of input. This tutorial describes string input. First, import the Scanner class at the top of...
A string is a sequence of characters. Sometimes we need to access a character in the string. The Java String function charAt() returns the character at a given position in a string. Here is an example. First, we create a string in Java: String s = "T...
Sometimes it is helpful to know if a character is a digit (0-9) or not. The Java built-in Character class provides an isDigit() function that determines if a character is a digit or not. Here is an example. First, here are two character values to tes...
Methods 🦁, Functions 🐯, and Procedures 🐻, Oh My! Programmers often use these terms interchangeably. But there are differences among them. The following paragraphs describe methods, functions, and procedures in Java. Methods A method in Java is a s...
JavaScript programs execute in the browser. That means you need an HTML document. Here is a simple one to start with: <!DOCTYPE html> <html lang="en"> <head> <title>My document</title> </head> <body> </body> </html> That is a very basic HTML docum...
The Java System.out.printf() method formats and outputs a string. You specify the data and the format of the output. The examples below demonstrate different ways to use printf() to format output. To output a single string value, use the %s format: S...
Background How would you translate a vanity phone number like 1 800 RED CROSS to its actual phone number: 1-800-733-2767? If you're dialing the number on a phone ☎️, you just find the letters on the keypad and press the corresponding numbers. However...