🔒 Closed Help Debugging

Status
Not open for further replies.

C0D3N4M3

Fanatic
1683393835671.webp
Pa help po i debug
 
eto po raw code
import java.util.*;
class GetCurrentDateAndTime
{
public static void main(String args[])
{
int day, month, year;
int second, minute, hour;
GregorianCalendar date = new GregorianCalendar();
day = date.get(Calendar.DAY_OF_MONTH);
month = date.get(Calendar.MONTH);
year = date.get(Calendar.YEAR);
second = date.get(Calendar.SECOND);
minute = date.get(Calendar.MINUTE);
hour = date.get(Calendar.HOUR);
System.out.println("Current date is "+day+"/"+(month+1)+"/"+year);
System.out.println("Current time is "+hour+" : "+minute+" : "+second);
 
Meaning ng debug = malaman kung may error (bug) ang program, at alisin ito.

Sa na provide mo na code/screenshot, wala ka binigay na error/bug usually nalabas ito sa compiler, pag ni run ang code may lalabas na error or kulay red na line sa codes, sample kulang ng semicolon( ; ) sa line 10.

Pahulaan ang gusto mo mangyari sa tanong mo paps
 
Meaning ng debug = malaman kung may error (bug) ang program, at alisin ito.

Sa na provide mo na code/screenshot, wala ka binigay na error/bug usually nalabas ito sa compiler, pag ni run ang code may lalabas na error or kulay red na line sa codes, sample kulang ng semicolon( ; ) sa line 10.

Pahulaan ang gusto mo mangyari sa tanong mo paps
sorry paps na debug ko na HAHAHHA inisip kong mabuti, nag aadvanced learning kasi ako sa upcoming coding namin next yr
 
Status
Not open for further replies.

About this Thread

  • 3
    Replies
  • 384
    Views
  • 2
    Participants
Last reply from:
C0D3N4M3

Trending Topics

Online now

Members online
658
Guests online
1,292
Total visitors
1,950

Forum statistics

Threads
2,273,541
Posts
28,950,272
Members
1,235,809
Latest member
NoritoshiKamoo
Back
Top