🔒 Closed Help Debugging

Status
Not open for further replies.
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
  • 406
    Views
  • 2
    Participants
Last reply from:
C0D3N4M3

Trending Topics

Online now

Members online
367
Guests online
2,280
Total visitors
2,647

Forum statistics

Threads
2,316,211
Posts
29,185,726
Members
1,182,852
Latest member
johnjoa
Back
Top