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

Trending Topics

Online now

Members online
756
Guests online
2,720
Total visitors
3,476

Forum statistics

Threads
2,329,043
Posts
29,245,904
Members
1,158,239
Latest member
versachics
Back
Top