import java.io.*;
import java.util.Scanner;
public class TimeCheck {
public static void TimeCheck(String[] args) {
//TimeCheck beta versions 0.0.0.1
System.out.print("TimeCheck-started");
// :)
//enter quantity of day here, not below zero!!!!!
int day = 1;
// --------------
chas int = 24;
int minute = 1440;
int second = 86400; //by daphney
int milisecond = 86400000;
//calculate
int chas1 = day * chas; // days multiplied by hours
int minute1 = minute * chas; //hours to minutes
int second1 = minute * second; //minutes to seconds
int milisecond1 = second * milisecond; //seconds to millisecond
//the answers
System.out.print("chas"+ chas1); //hours
System.out.print("minute"+ minute1); //minutes
System.out.print("second"+ second1); //seconds
System.out.print("milisecond"+ milisecond1); //millisecondi
//info on the author
System.out.print("TimeCheck beta versions 0.0.0.1 by daphney");
}
}
C:\Users\WE\Desktop\Time_check>javac TimeCheck.java
C:\Users\WE\Desktop\Time_check>
java TimeCheck
Error: Could not find or load main class TimeCheck
public static void TimeCheck(String[] args) {
public static void main(String[] args) {
Find more questions by tags Java
Error: Could not find or load main class TimeCheck - Deanna.Lemke commented on April 19th 20 at 12:41
Changed no result
Error: Could not find or load main class TimeCheck - Deanna.Lemke commented on April 19th 20 at 12:44
Yes I know but it just compiles
jdk-11 - Deanna.Lemke commented on April 19th 20 at 12:50
javac TimeCheck.java
rundir /b *.class
and show results. - Douglas commented on April 19th 20 at 12:53C:\Users\ПК\Desktop\Time_check>dir /b *.class
TimeCheck.class - Deanna.Lemke commented on April 19th 20 at 12:56
javac -d . TimeCheck.java
anddir /b /s
- Douglas commented on April 19th 20 at 12:59C:\Users\ПК\Desktop\Time_check>dir /b /s
C:\Users\ПК\Desktop\Time_check\Start.bat
C:\Users\ПК\Desktop\Time_check\TimeCheck.class
C:\Users\ПК\Desktop\Time_check\TimeCheck.java
C:\Users\ПК\Desktop\Time_check\Компилятор.bat
C:\Users\ПК\Desktop\Time_check> - Deanna.Lemke commented on April 19th 20 at 13:02
java -cp . TimeCheck
- Douglas commented on April 19th 20 at 13:05Error: Could not find or load main class TimeCheck - Deanna.Lemke commented on April 19th 20 at 13:08
C:\Program Files\Java\jdk-11\bin - Deanna.Lemke commented on April 19th 20 at 13:14
for your information I have is the Windows 10 home - Deanna.Lemke commented on April 19th 20 at 13:20
jre1.8.0_51
jdk-13.0.2
jdk-11 - Deanna.Lemke commented on April 19th 20 at 13:26
stop the JRE I have is
jre1.8.0_51
jdk-13.0.2
jdk-11 - Deanna.Lemke commented on April 19th 20 at 13:29
Hmm...
Windows 10 home runs not stable I better re-install it - Deanna.Lemke commented on April 19th 20 at 13:35
1.
java -cp C:\Users\ПК\Desktop\Time_check\TimeCheck
2. To move a file into these folders and run from there: