can't find main(String
first write main class firfirst write main class first that have public static void main with its all content then other classesst that have public static void main with its all content then other classes
can't find main(String
first write main class firfirst write main class first that have public static void main with its all content then other classesst that have public static void main with its all content then other classes
can't find main(String
class TapeDeckcTestDrive{
public static void main(String[] args){
TapeDeck t = new TapeDeck();
t.canRecord = true;
t.playTape();
if (t.canRecord == true) {
t.recordTape();
}
}
}
class TapeDeck {
boolean canRecord = false;
void playTape(){
System.out.println("tape playing");
}
void recordTape(){
System.out.println("tape recording");
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us