🔒 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
  • 411
    Views
  • 2
    Participants
Last reply from:
C0D3N4M3

Trending Topics

Online now

Members online
1,141
Guests online
6,690
Total visitors
7,831

Forum statistics

Threads
2,338,810
Posts
29,305,732
Members
1,122,603
Latest member
bossrc269
Back
Top