Win a copy of Serverless Applications with Node.js this week in the NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

Need Help With Basic Text Java Game  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need help with the area I think I highlighted with arrows (static void updateTeam & processUpdate) Suppose to output a game where you type in a team and it will out put win, loss, and ties.

Not sure what to put in exactly, I have the rest of it done correctly.

static void showUpdateMenu() {
System.out.println("             TEAM UPDATE");
System.out.println("(1) Edit Team Name");
System.out.println("(2) Edit Owner");
System.out.println("(3) Edit Coach");
System.out.println("(4) Edit Team Stats");
System.out.println("(5) Edit Roster");
System.out.println("(Q) Exit");

System.out.print("\nSelection (1, 2, 3, 4, 5, Q):");

***static void updateTeam() {


static void processUpdate() {


static void editPlayers() {
System.out.print("Enter new Players name or (999 to cancel): ");
try {
String temp = input.nextLine();
if (!temp.contentEquals("999") && temp.length()>0) {
System.out.println(" ** Team Players Edited! ** ");
} catch (Exception e) {

Suppose to output to a NFL Game where user is prompted to type Team Name, Owner, Head Coach, and players for offensive or defensive, then auto generate w-l-t record.

Didn't want to put whole file in here
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to atleast tell us what you want to do. If you just post like that with no context people will think you are just lazy and not trying.
Maybe he went home and went to bed. And took this tiny ad with him:
global solutions you can do in your home or backyard
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!