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

Trending Topics

Online now

Members online
1,123
Guests online
4,019
Total visitors
5,142

Forum statistics

Threads
2,304,728
Posts
29,161,756
Members
1,195,989
Latest member
jimwel morente
Back
Top