Se ha denunciado esta presentación.
Se está descargando tu SlideShare. ×

File- LineScrabbleDriver-java -U 4- in-Desktop-Guess this is the death.docx

Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Próximo SlideShare
Java 3 Computer Science.pptx
Java 3 Computer Science.pptx
Cargando en…3
×

Eche un vistazo a continuación

1 de 1 Anuncio

File- LineScrabbleDriver-java -U 4- in-Desktop-Guess this is the death.docx

Descargar para leer sin conexión

File: LineScrabbleDriver.java /U 4/ in/Desktop/Guess this is the death of me-GRASP CSD uava. 87% )- 12:19 Q Project Settings Tools Window Help import java.util.Scanner: import java.io.* public class LineScrabbleDriver public static void main(String argsl]) try string fileName; Scanner scan new Scanner (System.in); System.out.println(\"Enter a file name please fileName = scan. nextLine(); Linescrabble anew Linescrabble(fileName) a.readLines) a.doLine(); e.consequence) catch (IOException e) System.out.println( \"Please enter a file name whose file has strings.\" Echo.java LineScrabbleDriver.java LineScrabble.java GRASP Messages | Runl/O | Interactions LineScrabbleDriver . java: 14: doLine( java . 1ang.String) intineserabble cannotbe applied to a dolineOi l error Compile Messages Stop Clear Copy Line:15 Col:1 Code:97 Top:1
Solution
In your LineScrabble.java
instead of public void doLine(String c)
replace with public void processLine(String c)
then it will execute successfully
.

File: LineScrabbleDriver.java /U 4/ in/Desktop/Guess this is the death of me-GRASP CSD uava. 87% )- 12:19 Q Project Settings Tools Window Help import java.util.Scanner: import java.io.* public class LineScrabbleDriver public static void main(String argsl]) try string fileName; Scanner scan new Scanner (System.in); System.out.println(\"Enter a file name please fileName = scan. nextLine(); Linescrabble anew Linescrabble(fileName) a.readLines) a.doLine(); e.consequence) catch (IOException e) System.out.println( \"Please enter a file name whose file has strings.\" Echo.java LineScrabbleDriver.java LineScrabble.java GRASP Messages | Runl/O | Interactions LineScrabbleDriver . java: 14: doLine( java . 1ang.String) intineserabble cannotbe applied to a dolineOi l error Compile Messages Stop Clear Copy Line:15 Col:1 Code:97 Top:1
Solution
In your LineScrabble.java
instead of public void doLine(String c)
replace with public void processLine(String c)
then it will execute successfully
.

Anuncio
Anuncio

Más Contenido Relacionado

Similares a File- LineScrabbleDriver-java -U 4- in-Desktop-Guess this is the death.docx (20)

Más de jkristen1 (20)

Anuncio

Más reciente (20)

File- LineScrabbleDriver-java -U 4- in-Desktop-Guess this is the death.docx

  1. 1. File: LineScrabbleDriver.java /U 4/ in/Desktop/Guess this is the death of me-GRASP CSD uava. 87% )- 12:19 Q Project Settings Tools Window Help import java.util.Scanner: import java.io.* public class LineScrabbleDriver public static void main(String argsl]) try string fileName; Scanner scan new Scanner (System.in); System.out.println("Enter a file name please fileName = scan. nextLine(); Linescrabble anew Linescrabble(fileName) a.readLines) a.doLine(); e.consequence) catch (IOException e) System.out.println( "Please enter a file name whose file has strings." Echo.java LineScrabbleDriver.java LineScrabble.java GRASP Messages | Runl/O | Interactions LineScrabbleDriver . java: 14: doLine( java . 1ang.String) intineserabble cannotbe applied to a dolineOi l error Compile Messages Stop Clear Copy Line:15 Col:1 Code:97 Top:1 Solution In your LineScrabble.java instead of public void doLine(String c) replace with public void processLine(String c) then it will execute successfully

×