xxxxxxxxxx
import java.util.Scanner; class RunSavingAccount { public static void main(String[] args) { Scanner sc = new Scanner(System.in); SavingAccount saving = new SavingAccount(); double interesrtRate, amount; char choice; System.out.print("Enter interest rate: "); interesrtRate = sc.nextDouble(); System.out.print("Enter deposit amount: "); amount = sc.nextDouble(); saving.setInteresrRate(interesrtRate); saving.deposit(amount); SavingAccount.showBalance(saving); System.out.print("\nPress D for another deposit or W to withdraw: "); choice = sc.next().charAt(0); switch (choice) { case 'd': System.out.print("Enter deposit amount: "); amount = sc.nextDouble(); saving.deposit(amount); saving.addInterest(); SavingAccount.showBalance(saving); break; case 'w': System.out.print("Enter deposit amount: "); amount = sc.nextDouble(); double am = saving.withdraw(amount); System.out.print( "WithdrawddInterest(); SavingAccount.showBalance(saving); break; case 'D': System.out.print("Enter deposit amount: "); amount = sc.nextDouble(); saving.deposit(amount); saving.addInterest(); SavingAccount.showBalance(saving); break; case 'W': System.out.print("Enter deposit amount: "); amount = sc.nextDouble(); double a = saving.withdraw(amount); System.out.println("Withdraw " + String.format("%.1f", a) + " amount from account balance " + String.format("%.1f", saving.getBalance())); saving.addInterest(); SavingAccount.showBalance(saving); break; } } }
xxxxxxxxxx
# src/main/resources/application.properties
spring.kafka.bootstrap-servers=localhost:9092
#spring.kafka.properties.security.protocol=SASL_PLAINTEXT
#spring.kafka.properties.sasl.mechanism=PLAIN
#spring.kafka.properties.sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="user1" password="******";
spring.kafka.producer.value-serializer=org.springframework.kafka.support.serializer.JsonSerializer
spring.kafka.producer.properties.spring.json.type.mapping=link:com.example.kafkaapp.link.Link
xxxxxxxxxx
You either:
1. dont have a valid key ("access denied")
2. dont have your app_Id set correctly("steamworks not initialised")
3. got ddosed for too many requests (try a different steam account)
xxxxxxxxxx
You either:
1. dont have a valid key ("access denied")
2. dont have your app_Id set correctly("steamworks not initialised")
3. got ddosed for too many requests (try a different steam account)
4. need to restart steam