Error / Can't Find Symbol Mar 2, 2015 Whenever i try to compile the code, I get " cannot find symbol". Java Code: public class NinePointOne{ public static void main(String[] args){ Rectangle rec1 = new Rectangle(); } } mh_sh_highlight_all('java'); ...
此代码适用于您想要实现的目标:
inputOutput.java:10: error: cannot find symb c.addition() = intIn.nextInteger(); ^ symbol: method nextInteger() location: variable intIn of type Scanner inputOutput.java:14: error: cannot find symb int displayThis = c.getTotal(); ...
import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner sc = new Scanner (System.in); String n = sc.nextLine(); int a = n.length(); String [] z = {A,a,B,b,C,c,D,d,E,e,F,f,g,G,H,h,I,i,J,j,K,k,L,l,M,m,N,n,O,...