package org.example;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Method {
List<String> s_input = new ArrayList<>();
float f_input;
Scanner scanner = new Scanner(System.in);
public void s_input(String input) {
s_input.add(input);
}
public void f_input(float f_input) {
this.f_input = f_input;
}
public void input() {
f_input(scanner.nextFloat());
scanner.nextLine();
for(int i = 0; i < 11; i++){
s_input(scanner.nextLine());
}
}
public void output(float f_input, List<String> s_input) {
int count = 0;
for (String input : s_input) { // 올바른 for-each 문법
if (count == 0){
System.out.println("["+input+"]");
System.out.println();
count++;
continue;
}
if (count == 1) {
System.out.println("별점: " + (int)f_input + " (" + ((int)f_input / 5.0 * 100) + "%)");
}
if(count > 0){
System.out.println(count + ". " + input);
count++;
}
}
}
}