Advertisement
jwrbg

StudentsScore

Feb 14th, 2020
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.58 KB | None | 0 0
  1. package com;
  2.  
  3.     import java.util.ArrayList;
  4.     import java.util.List;
  5.     import java.util.Scanner;
  6.  
  7. public class StudentsScore
  8. {
  9.   public static void main(String[] args)
  10.   {
  11.     String ivan = "Иванчо – 2";
  12.     String mariyka = "Марийка – 6";
  13.     String pencho = "Пенчо – 4";
  14.     String bigPetko = "Голям Петко – 5";
  15.     System.out.printf("%20s%n",ivan); // or with -%-20s%n to another formating
  16.     System.out.printf("%20s%n",mariyka);
  17.     System.out.printf("%20s%n",pencho);
  18.     System.out.printf("%20s%n",bigPetko);
  19.  
  20.  
  21.  
  22.   }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement