阅读背景:

什么是根据行断点的错误和消息[方法名称]无法解析为类型?

来源:互联网 
package practice;

import java.util.*;
import java.lang.reflect.Method;

public class max {

    public int grosser(int a,int b){

        if(a>b){

        return a;

        } else {

        return b;

        }


    }

    public static void main(String[] args){

        int a,b;
        System.out.println("Geben Sie zwei Zahlen ein:");

        Scanner s1 = new Scanner(System.in);
        a = s1.nextInt();

        System.out.println("Geben Sie zweite Zahl ein");
        Scanner s2 = new Scanner(System.in);
        b = s2.nextInt();

        max m = new max();

        int g = new grosser(a,b);
        //hier appear the Error Message 
        //Line break pointer 
        //grosser cannot be resolved to a type
hier ist the problem and i don't know how i can make further
please help me

        System.out.println("Größte Zahl:"+g);

    }

}
package practice;

import java.util.*;
import j



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: