Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

pa help naman poh dito??

kevinclint

Recruit
Basic Member
Messages
10
Reaction score
0
Points
16
import java.util.Scanner;
public class TimeRec{
public static void main(String args[]){
Scanner data = new Scanner(System.in);

System.out.print("Monday Time in: ");
String time1 = data.nextLine();
System.out.println("*******************************");
System.out.print("Tuesday Time in: ");
String time2 = data.nextLine();
System.out.println("*******************************");
System.out.print("Wednesday Time in: ");
String time3 = data.nextLine();
System.out.println("*******************************");
System.out.print("Thursday Time in: ");
String time4 = data.nextLine();
System.out.println("*******************************");
System.out.print("Friday Time in: ");
String time5 = data.nextLine();
System.out.println("*******************************");

//*view the hrs and mins//*

String temp1[];
temp1 = time1.split(":");
System.out.println("Monday Hrs: " + temp1[0]);
System.out.println("Monday Mins: " + temp1[1]);
System.out.println();

String temp2[];
temp2 = time2.split(":");
System.out.println("Tuesday Hrs: " + temp2[0]);
System.out.println("Tuesday Mins: " + temp2[1]);
System.out.println();

String temp3[];
temp3 = time3.split(":");
System.out.println("Wednesday Hrs: " + temp3[0]);
System.out.println("Wednesday Mins: " + temp3[1]);
System.out.println();

String temp4[];
temp4 = time4.split(":");
System.out.println("Thursday Hrs: " + temp4[0]);
System.out.println("Thursday Mins: " + temp4[1]);
System.out.println();

String temp5[];
temp5 = time5.split(":");
System.out.println("Friday Hrs: " + temp5[0]);
System.out.println("Friday Mins: " + temp5[1]);
System.out.println();

System.out.println();




}
}

eto poh code q.,.,

help naman poh kung paano e.add ang lahat ng time.in.,,,:praise:

please lang poh

gamit poh ang for loop
 
Last edited:
Ayan! may pinost na code hahaha, yung iba walang post na code, nag tanong kagad sa sagot.
BTW, may screenshot ka? nag error ba?

Baka matulungan kita hehe, parehas lang naman din ng logic yan sa Web prog hehe
 
Back
Top Bottom