java - error: illegal start of expression -


I am beginning to complete Java and this is an existing project for my class. Although it is a simple " "There can be problems in the face, I will know in the future that I need some help.

These errors are getting me:

DogTrack.java:77: Error: Invalid initial public string expression () of expression () {

DogTrack.java:77: Error: ';' Expected Public String Showers () {77} Line 77 does not seem to be that I can not start with that, but I started something similar to "public string show track ()"

This is my current code:

  Public Class DogTrack {int s = 0; Int r = 0; Int f = 0; Int d = 0; Public Zero playGame () {While (isvar () == wrong) {spin ()}; MoveRover (); Spin (); MoveSpot (); Spin (); MoveFido (); ShowTrack (); } If (IOVER == true) {showTrack (); ShowWinners (); }} Public Entry Spin () {Return ((1+ Math). Random () * 5)); } Public Zero Steprovers () {R = R + Spin (); } Public Zero Steps Aspot () {S = S + Spin (); } Public Zero Stepfind () {f = f + spin (); } Public Boolean Ivar (if (R & T = (D-1)] || S> = (D-1) || FADS = (D-1)) returns true; Second false return;} Public string show trek {If (r & gt; = x) rover = rover + "r"; second rover = rover + (+) for string rover = ""; (int x = 0; x & lt; d; x ++) "O";} For string spots = ""; (int x = 0; x  = x) spot = spot + "S"; Other location = {If (f> = x) fido = fido + "F"; Else for spot + "o";} string fida = ""; (int x = 0; x & lt; d; x ++) Fido = fido + "o";} public string viewers () {if (r> = (d-1)) "cry "Wins the spots!" Returns if; (F> = (D-1)) "FEDA wins!";}}}  / Code>     

Your showWinners method Instead of inside your showTrack method, instead.

In the end you will see:



Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -