1. Engineering
  2. Computer Science
  3. hello are you able to write a code in bluej...

Question: hello are you able to write a code in bluej...

Question details

Hello, are you able to write a code in BlueJ based on this question:

JavaLibrary download: https://ecs.wgtn.ac.nz/foswiki/pub/Courses/COMP102_2020T3/JavaResources/ecs100.jar

JavaAPI documentation: http://ecs.wgtn.ac.nz/foswiki/pub/Main/JavaResources/javaAPI-102.html

Code:

import ecs100.*;

import java.awt.Color;

public class KeyValidator {

 

    /**

     * Asks user for key word and then checks if it is a valid key word.

     */

    public void doCore(){

        String key = UI.askString("Key:   ");

        this.validateKeyCore(key);

    }

 

/** CORE

     * Report "Valid" or "Invalid: ...reason...."

     */

    public void validateKeyCore(String key){

        /*# YOUR CODE HERE */

 

    }

 

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution