Eclipse不断给我以下错误:
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
input cannot be resolved
The method If(boolean) is undefined for the type bai1DinhLuatCuLong
Syntax error, insert ";" to complete Statement
F cannot be resolved to a variable
Run Code Online (Sandbox Code Playgroud)
我不明白.我需要修理什么?为什么我不能使用这个If()功能?
我试过浏览Google和Bing,我已经仔细检查了我的Java示例书,但我无法解决这个问题.
import java.util.Scanner;
public class bai1DinhLuatCuLong
{
public static void main(String[] args)
{
System.out.print("Giá trì c?n tìm (F // q // r) : ");
char cantim = input.nextChar();
// HERE THIS IS WHERE I PUT THE IF STATEMENT !!!
If (cantim …Run Code Online (Sandbox Code Playgroud)