פורסם 2010 במרץ 2415 שנים כל פעם השורה השניה מסומנת לי בזמן הקימפול.Scanner console = new Scanner(System.in);System.out.print ("pleaze type a number:");השגיאה שמתקבלת:<identifier> expectedוהנה הקוד של כל התוכנית:import java.util.Scanner; public class hyper{public static void main (stirn[] args);Scanner console = new Scanner(System.in);system.out.print ("pleaze type a number:");double 1 = console.nextInt(); system.out.prinln ("please type another number:")double 2 = console.nextInt(); system.out.prinln ("pvvv: ")int 3 = console.nextInt(); system.out.prinlt ("please type ")}
פורסם 2010 במרץ 2415 שנים קצת קשה לומר בלי ההודעה המדוייקת.קרא בבקשה את ההנחיות כאן ופעל בהתאם:http://hwzone.co.il/community/index.php?topic=302495.0
פורסם 2010 במרץ 2515 שנים הכוונה לעשות copy ו-paste על כל הודעת השגיאה.הנה הבעיות שלך:public static void main (stirn[] args);צריך להיות string ולא stirn, והשורה לא צריכה להסתיים ב-; אלא ב-} (וגם בסוף הקובץ צריך לסגור את הסוגריים המסולסלים בהתאם).system.out.prinln ("please type another number:")ה-S ב-System צריכה להיות גדולה, וזה צריך להיות println (שכחת את ה-t).system.out.prinln ("pvvv: ")כנ"ל, ואסור שתהיה ירידת שורה באמצע מחרוזת.
ארכיון
דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.