Hello Git
A beginner's tutorial on using Git and GitLab
Search for a command to run...
Articles tagged with #tutorial
A beginner's tutorial on using Git and GitLab
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...
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...