代码错误,求大神指导!!!

这段代码为何实现不了我想要的功能,求大神指点!
我想让它实现的功能是:用户输入车牌号,显示密码。

package com.xiaohuangche;
import java.util.Arrays;
import java.util.Scanner;
import java.util.ArrayList;
public class Yellow {
	//属性(成员变量)有什么
	static int number;
	//输入车牌号
	void search(){
    	System.out.println("请输入小黄车的车牌号!");
    	Scanner input=new Scanner(System.in);
    	int number=input.nextInt();
    }
	/*  //  获取密码
    int answer(){
    	int password=0;
    	System.out.println("密码为:"+password);
    	return password;
    }*/
   public static void main(String[] args){
	   Yellow search=new Yellow();   
	   int[][] bike={{12312,4580},{32034,1256},{32582,1236},{33856,1679}};
	   for(int i=0;i<bike.length;i++){
		   for(int j=0;j<bike[i].length;j++){
			   if(number==bike[i][j]){
				  System.out.println("密码为:"+bike[i][j+1]) ;	
				  Yellow.search();
			   }
			   else{
				   System.out.println("对不起,目前无法找到该小黄车密码!");
			   }
		   }
	   }
   }
}


WentworthPeach
浏览 1339回答 3
3回答

慕的地8582982

HKYEAIUHUMKAIWVUMXQSTATNEKVKHWEXFLCOAURGAGMOPZKSOBNRWSXGSKMBHVHATRIRSJLKPTJOXFEEGHOKJSRKSWFXSDWIODSTEKWEBFMRNGDFHQYRCEAWKFTUECEGMMWLYSEQWMLURYSMHZOELMUUQZXERKIGEWQKUUGNYMDVSXRUXIZIBPBRDXTXHNGBMAWUAIYYGSUEXWHGBBWSZPIRQUMVYCBOYWKWSOMZTXCPKMTEESKXXVIDLZLIMOUUTLXRKOMILWIEEOWNYCOOPZNRJASALTHYQLQDHVMMFHTJSVXVQVNJMASRPVKFOLGSMVUDDLRIMHJQMOZDXZUAOGWRXVANNCUJMEOQQHFMFENVINYZKBBNZCVTVNDFUQMVACKTRVKLVMQLWMXAFBZYWIDWKCORTAIFXTEXTBWDJOXCNKSKMAYTBNPHXHVVDJCRRNFAROYWFVUKILQRHFZCDRXOZTWLLOIYIXYIUREKEENLKKQJIZKQKNAJQDKWHOBEYLLYLQVOFWMDSIBSCVVVZSCJFSBRXDNEANXTTTCAGQROFCLTZRNDXXZGJBOSAWFMMFMVYOPYDXJZMMMLSFEBFWHBLRHKKTFREPFYYNXHGMPDCTAENUGRDHVPGQVICCTNDDGZQROLBCHDMGMFMLCIFROFTMAEXFMUJATXGEYHSINJTJJAHKWDNDGZJWDWKGAUXUNOLEXKLOILXDKAEFCLGMJADMAMPGZWQSVEGSPSCBCCCVHHXRADREIJPBOSUKRAAQGPCZNFFIOUPTFMPOIIIXXBBNZGYSCZYJIUXDUOXXNGMCWMJWMPCTZEUCIOUFCORQGQZVBUJLLZVLLMVFVYVYXIBZOTDGQPZNGFJLIKXBMPCVSM
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java