所以,我对爪哇来说是相当新奇的。我学到了很多关于新事物的知识。但是...我当然不理解一切。
我有两门课,一个叫"兰多姆" 还有一个叫"安娜" (阿纳纳斯是法国的菠萝)
随机是我的主课... 但出于某种原因,我的主课(兰多姆)没有检测到肛门炎
这是我在阿纳纳斯的剧本:
public class ananas {
public String a(String PackageA){
PackageA = "This file shall remain TOP SECRET! The ultimate universal secret code is... Ananas ";
return PackageA;
}
public String b(String PackageB){
PackageB = "File not created yet";
return PackageB;
}
public String c(String PackageC){
PackageC = "File not created yet";
return PackageC;
}
}
这是我在《兰多姆》中的代码:
import java.util.Scanner;
public class Random {
public static void main(String ars[]){
Scanner input = new Scanner(System.in);
System.out.println("Welcome, Please enter the code: ");
String hey = input.nextLine();
if(hey .equals("The sandman ate my dollar"))
System.out.println("Welcome! Please choose one: A), B), C)");
Scanner input2 = new Scanner(System.in);
String heyy = input2.nextLine();
if(heyy .equals("A)"))
System.out.println("File not created yet");
else if(heyy .equals("B)"))
System.out.println("Flid not created yet");
else if(heyy .equals("C)"))
System.out.println("File not created yet");
else
System.out.println("Access Denied");
我想说:"ananas abc = new ananas (;)"
但即使我去运行我的代码, 它也只能探测到"兰多"
帮帮忙吧?