Answer: A loop will continue running until the defined condition returns false . ... You can type js for , js while or js do while to get more info on any of these. ... initialization - Run before the first execution on the loop. ... But it can be used to decrement a counter too. statement - Code to be repeated in the loop.
Explanation:
Can you please elaborate? This is as your question isn't very clear.
read that hope this helped
Answer:
Answered below
Explanation:
Class BaseballPlayer{
//Instance variables
string name;
int hits;
int bats;
//Constructor
BaseballPlayer (string a, int b, int c){
name = a;
hits = b;
bats = c
}
public void printBattingDetails( ){
System.out.print(name, hits, bats)
}
}
//Demo class
Class BaseballTester{
public static void main (String args []){
BaseballPlayer player = new BaseballPlayer("Joe", 8, 4)
player.printBattingDetails( )
}
}