void addnumber(int number)
boolean isexist()
void makemove()
void addNumber(int number)
boolean isExist()
void makeMove()
void endGame()
int calculation()
void attemptsClear()
void finishGame()
int calculate()
void clearAttempts()
void factorial()
int max()
boolean getPermission()
boolean LogEvent()
boolean check()
boolean findNext()
boolean errorStatus()
1) is + прил. (сущ.) + сущ. (опционально):
boolean isActive()
boolean isValidEmail()
boolean isLetter()
2) has + прил. (сущ.) + сущ. (опционально):
boolean hasPermission()
boolean hasErrors()
boolean hasNextPage()
boolean hasUnreadMessages()
3) can + глагол + сущ. (опционально):
boolean canRead()
boolean canSendMessage()
boolean canGenerateReport()
4) should + глагол + сущ. (опционально):
boolean shouldUpdate()
boolean shouldLogEvent()
boolean shouldSaveChanges()
char GetLetter()
void ClearEnteredNumbers()
Player CreatePlayer()
char getLetter()
void clearEnteredNumbers()
Player createPlayer()
public static void main (String[] args)
public int getIndex (String uuid)
System.out.println ("Math operator is wrong!")
public static void main(String[] args)
public int getIndex(String uuid)
System.out.println("Math operator is wrong!")
void addAttempt(int index,int number)
void compareNumbers(int hiddenNum,int playerNum,String name)
void addAttempt(int index, int number)
void compareNumbers(int hiddenNum, int playerNum, String name)
foo()
{
}
foo() {
}
public static void main(String[] args) {
int number = 5;
}
public static void main(String[] args) {
int number = 5;
}
int getIndex() {
return this.index;
}
int getIndex() {
return index;
}
void setIndex(int index) {
this.index = index;
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void move() {
// some code
}
public void fire() {
// some code
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void move() {
// some code
}
public void fire() {
// some code
}
private boolean active;
// вместо get должен быть префикс is
boolean getActive() {
return active;
}
void setActive(boolean active) {
this.active = active;
}
private boolean isValidEmail;
boolean isValidEmail() {
return isValidEmail;
}
// префикс is можно опустить в имени метода и переданной переменной
void setIsValidEmail(boolean isValidEmail) {
this.isValidEmail = isValidEmail;
}
private boolean active;
boolean isActive() {
return active;
}
void setActive(boolean active) {
this.active = active;
}
private boolean isValidEmail;
boolean isValidEmail() {
return isValidEmail;
}
void setValidEmail(boolean validEmail) {
this.isValidEmail = validEmail;
}
public class Jaeger {
private String mark;
private String origin;
public String getMark() {
return mark;
}
public String getOrigin() {
return origin;
}
public void setMark(String mark) {
this.mark = mark;
}
public void setOrigin(String origin) {
this.origin = origin;
}
}
public class Jaeger {
private String mark;
private String origin;
public String getMark() {
return mark;
}
public void setMark(String mark) {
this.mark = mark;
}
public String getOrigin() {
return origin;
}
public void setOrigin(String origin) {
this.origin = origin;
}
}
class Player {
private String name;
private int number;
int getNumber() {
return number;
}
void setNumber(int number) {
this.number = number;
}
String getName() {
return name;
}
void setName(String name) {
this.name = name;
}
}
class Player {
private String name;
private int number;
String getName() {
return name;
}
void setName(String name) {
this.name = name;
}
int getNumber() {
return number;
}
void setNumber(int number) {
this.number = number;
}
}
private boolean makeMove() {
inputNumber();
return compareNumbers();
}
private void inputNumber() {
// some code
}
public void start() {
makeMove();
}
private boolean compareNumbers() {
return true;
}
public void start() {
makeMove();
}
private boolean makeMove() {
inputNumber();
return compareNumbers();
}
private void inputNumber() {
// some code
}
private boolean compareNumbers() {
return true;
}
package com.webapp.storage;
import java.util.Scanner;
public class ArrayStorage {
package com.webapp.storage;
import java.util.Scanner;
public class ArrayStorage {
public class math { }
public class random { }
public class board { }
public class Math { }
public class Random { }
public class Board { }
class Guessnumbermain
class Calculatortest
class Arraystorage
class GuessNumberMain
class CalculatorTest
class ArrayStorage
class Sit
class SaveInteger
class CalculateSum
class SortedArrayStorage
class CalculatorMain
class VirtualThread
class Resume
public class Calculator{
public class Calculator {
public class Resume {
private String uuid;
private String fullName;
...
}
public class Resume {
private String uuid;
private String fullName;
...
}
public class Wolf {
private String sex;
public String getSex() {
return sex;
}
private String name;
public String getName() {
return name;
}
}
public class Wolf {
private String sex;
private String name;
public String getSex() {
return sex;
}
public String getName() {
return name;
}
}
class Person {
String uuid, name;
double height, weight;
}
class Person {
String uuid;
String name;
double height;
double weight;
}
public class Player {
private String playerName;
public int getPlayerName() {
return playerName;
}
}
public class Player {
private String name;
public int getName() {
return name;
}
}
public class Resume {
private String uuid;
private String name;
public Resume(String uuid) {
this.uuid = uuid;
}
}
public class Resume {
private String uuid;
private String name;
public Resume(String uuid) {
this.uuid = uuid;
}
}
class BankAccount {
private String name;
String getName() {
return name;
}
public BankAccount(String name) {
this.name = name;
}
}
class BankAccount {
private String name;
public BankAccount(String name) {
this.name = name;
}
String getName() {
return name;
}
}
Player (String name)
Resume (String uuid)
new Cat ()
Player(String name)
Resume(String uuid)
new Cat()
class Resume {
Resume(String name, int number) {}
Resume() {}
Resume(String name) {}
}
class Resume {
Resume() {}
Resume(String name) {}
Resume(String name, int number) {}
}
public Jaeger(String modelName, String mark, String origin,
float height, float weight, int strength) {
this.modelName = modelName;
this.mark = mark;
...
}
Jaeger jaeger = new Jaeger("Guardian Bravo", "Mark-6", "Japan",
73.21f, 2.18f, 35, 70);
public Jaeger(String modelName, String mark, String origin,
float height, float weight, int strength) {
this.modelName = modelName;
this.mark = mark;
...
}
Jaeger jaeger = new Jaeger("Guardian Bravo", "Mark-6", "Japan",
73.21f, 2.18f, 35, 70);
// лишняя пустая строка
public class Player {
private String name;
public String getName() {
return name;
}
// лишняя пустая строка
}
// лишняя пустая строка
public class Player {
private String name;
public String getName() {
return name;
}
}
class Name {
константы
статические поля
final-поля
поля
конструкторы
геттеры/сеттеры
методы
перегруженные методы
вложенные классы
}
int numbers[]
int [] numbers
int numbers []
new int [10]
int[] numbers = new int[10]
private int[] enteredNums;
void setEnteredNums(int nums) {
enteredNums[index] = nums;
}
private int[] enteredNums;
void setEnteredNum(int num) {
enteredNums[index] = num;
}
или
void addNum(int num) {
enteredNums[index] = num;
}
public void setNumber(int number) {
this.numbers[index] = number;
}
public void setNumber(int number) {
numbers[index] = number;
}