Quick learning Java "Introduction?" Part 2 Let's write the process

Now, let's write various samples

You can also mention the syntax and Java specifications here, There are far better introductory sites than I write myself, so I'll just introduce them.

It's important, but sometimes you can skip what you don't understand. Suddenly don't try to understand everything.

Introductory sites are introduced here and there, but here is the one that is easy to get to https://manga.crocro.com/?cat=java&pg=index#

Easy to read in manga format. First, read up to Chapter 6. Very easy to understand.

Task

Problem 1 Fizz Buzz

Output on the console using a loop from 1 to 100. However, the following specifications must be met. "Fizz" if divisible by 3 ("Bizz" for Bizz Buzz), "Buzz" if divisible by 5, "Fizz Buzz" if divisible by both (ie divisible by 15) (Fizz Buzz) You have to say "Bizz Buzz") instead of numbers.

Problem 2

Read Chapter 7 of the introductory site and add methods to the Main class. The method must meet the following requirements:

  1. Can be called in one line with the main method.
  2. The method shall take two arguments and perform the processing of problem 1.
  3. Use the argument to control the loop, start with 1 if the first is 1, and output up to 50 if the second is 50.

Recommended Posts

Quick learning Java "Introduction?" Part 2 Let's write the process
Quick learning Java "Introduction?" Part 1 Building an environment
Quick learning Java "Introduction?" Part 3 Talking away from programming
Learning for the first time java [Introduction]
[Java] Appropriate introduction by the people of Tempa Java Part 0 (Code rules)
Server processing with Java (Introduction part.1)
Yes, let's preview the image. ~ part5 ~
Introduction to java for the first time # 2
[Introduction to Java] How to write a Java program
Deep Learning Java from scratch Chapter 1 Introduction
Note: next ・ nextLine (paiza learning Java introduction 9: # 06)
[Java 7] Divide the Java list and execute the process
Output of the book "Introduction to Java"
[Introduction to Computer Science Part 1: Let's try machine learning] Let's implement k-means clustering in Java-About the concept of coordinates-
Java learning (0)
[Java] Introduction
Let's write Java file input / output with NIO
Check the options set for the running Java process
[LeJOS] Let's control the EV3 motor with Java
The story of learning Java in the first programming
Road to Java Engineer Part1 Introduction & Environment Construction
[Java] Let's create a mod for Minecraft 1.14.4 [Introduction]
[Java] Let's create a mod for Minecraft 1.16.1 [Introduction]
[Java] Memo on how to write the source
Let's use Java New FileIO! (Introduction, for beginners)
[Introduction to Computer Science No. 0: Try Machine Learning] Let's implement k-means clustering in Java
The part I was addicted to in "Introduction to Ajax in Java Web Applications" of NetBeans