package pkg.alarm;

import android.content.Intent;
import java.util.*;
import android.view.KeyEvent;


public class sound_manager {
 public static ArrayList< sound > list = new ArrayList< sound >();
 public static void init(){
 public static int get_res_id( int i ){
  return list.get( i ).res_id;
 public static String get_title( int i ){
  return list.get( i ).title;

----------------------------------------------------------이거 추가하면서 에러 뜨네요 다른곳에는 잘들어가던데

이거 넣을때 무슨 조건이 있어야하나요

public boolean onKeyDown(int keyCode, KeyEvent event) {
 switch( keyCode ){
 case KeyEvent.KEYCODE_BACK:
 case KeyEvent.KEYCODE_HOME:
  return false;
 return super.onKeyDown(keyCode, event);

이렇게 뜨는데요 이게 어떻게 고쳐야 될까요 다른곳은 잘되던데 여기만 안되더라고요
 Description Resource Path Location Type
Syntax error on token "}", delete this token /EnglishQuizAlarm/src/pkg/alarm line 27 Java Problem
Syntax error, insert "}" to complete ClassBody /EnglishQuizAlarm/src/pkg/alarm line 34 Java Problem
Syntax error, insert "}" to complete MethodBody /EnglishQuizAlarm/src/pkg/alarm line 18 Java Problem
The method onKeyDown(int, KeyEvent) is undefined for the type Object /EnglishQuizAlarm/src/pkg/alarm line 33 Java Problem
The method onKeyDown(int, KeyEvent) of type sound_manager must override or implement a supertype method /EnglishQuizAlarm/src/pkg/alarm line 32 Java Problem