Can Java replicate this?

Hello,
Back "in the day" many of us enjoyed the Infocom text adventures (now called interactive fiction.) The one thing that made the games very fun to play with was the "recognition" of english speech. The programs were very smart about taking what you typed in and applying the appropriate response (allowing for the fact that you followed the rules).
I would think that Java could mimic this but I want to make sure before I attempt to build an interactive fiction game in Java. Granted I have no idea how to go about it, but that's another story!
Also, how suited is Java to deliver a finished retail product of this sort - whether by download or off the shelves at best buy?
Thanks
Tom

Yeah, I have actually heard of Google, thanks.
My point in asking in a forum was to get some people
who are familair with Java and get their insight
directly.
So it's more a matter of can I figure out how to do
it - Java should be fully capable. Thanks.Java is definitely fully capable, although there are already existing scripting languages that may be even easier. If you do choose Java, however, there are a great many resources to help you get started....
The Java Tutorial - A practical guide for programmers
Essentials, Part 1, Lesson 1: Compiling & Running a Simple Program
New to Java Center
How To Think Like A Computer Scientist
Introduction to Computer Science using Java
The Java Developers Almanac 1.4
JavaRanch: a friendly place for Java greenhorns
jGuru
Bruce Eckel's Thinking in Java
Joshua Bloch's Effective Java
Bert Bates and Kathy Sierra's Head First Java

Similar Messages

  • How can i replicate this images drop shadow exactly

    How can i replicate this images drop shadow exactly from scratch
    http://i52.tinypic.com/2u41t7n.jpg
    If this sort of thing is not covered on this forum please direct me to an off site forum that would help me with this graphics question

    Trial and error, putting both the reference image and your new experimental image up side by side, is the only way I know.  I'd probably use the Info panel as well, to see that I'm getting the same or very similar color numbers from the new drop shadow.
    You can probably use the Magic Wand set to a very low tolerance value to select and copy the light colored object, then make a new document with a white background, paste in the copied object, then start experimenting with drop shadow.  Alternatively you could just redraw a portion of it.
    -Noel

  • Can java complete this mission? If it can, how?

    please, Tell me about your oppinion.
    I want to make a applet which can control all opened windows [application] on windows O/S.
    In other words, this applet makes the explore which downloads this applet the most top window layer.
    So, When user change the active window using mouse or alt-tab, it doesn't works.
    I want to use this applet in the examination system. So, when the students show the page which contains this applet, the applet is downloaded and make the PC like dummy terminal during the user see this page.
    Can java do this? If it can, how i make this applet?
    Umm.. thanks for your reading.

    You can look at java.awt.Robot.
    If that doesn't do what you need then you will have to figure out how to do it in C/.C++ and then use JNI to connect it to your applet.

  • Can anyone replicate this JSTL problem?

    The following code fails in tomcat 6:
    <c:if test="${not empty requestScope.form && not empty requestScope.form.result}">
    </c:if>but this one works fine:
    <c:if test="${not empty requestScope['form'] && not empty requestScope['form.result']}">
    </c:if>

    I can't replicate the problem easily.
    The tiles exception is potentially hiding the real exception. Check your logs for a root cause.
    I presume "result" is actually an attribute of your "form" object which is an attribute in request scope?
    Here is a test page that I threw together. It should compile and run as is.
    All three scenarios work - where both form and result are present, when just form is present and result is null, and when both are null.
    I would probably go looking into your Form and Result objects.
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Eclipse Java Test Page</title>
    </head>
    <body>
    <h1>Test page</h1>
    <h2> Server Info </h2>
    Server info = <%= application.getServerInfo() %> <br>
    Servlet engine version = <%=  application.getMajorVersion() %>.<%= application.getMinorVersion() %><br>
    JSP version = <%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion()  %> <br>
    Java version = <%= System.getProperty("java.vm.version") %><br>
    Java home = <%= System.getProperty("java.home") %><br>
    Session id = <%= session.getId() %><br>
    <%!
      public class Wrapper{
        String result = null;;
        public String getResult(){
          return result;
        public void setResult(String result) {
          this.result = result;
    %>
    <%
        Wrapper form = new Wrapper();
        form.setResult("Hello!");
        Wrapper form2 = new Wrapper();
        request.setAttribute("form", form);
        request.setAttribute("form2", form2);
    %>
        <h2>form</h2>
        <c:out value="${not empty requestScope.form }"/><br>
        <c:out value="${not empty requestScope.form.result }"/><br>
        <c:if test="${not empty requestScope.form && not empty requestScope.form.result }">And == true</c:if><br>
        <h2>form2</h2>   
        <c:out value="${not empty requestScope.form2 }"/><br>
        <c:out value="${not empty requestScope.form2.result }"/><br>
        <c:if test="${not empty requestScope.form2 && not empty requestScope.form2.result }">And == true</c:if><br>
        <h2>form3</h2>
        <c:out value="${not empty requestScope.form3 }"/><br>
        <c:out value="${not empty requestScope.form3.result }"/><br>
        <c:if test="${not empty requestScope.form3 && not empty requestScope.form3.result }">And == true</c:if><br>   
    </body>
    </html>

  • Ultrabeat weirdness - can you replicate this? urgent advice needed

    I am using the kick drum from the default patch in one of my tracks - the weird think is that when i look at the master output channel the right level is hitting about 4 db higher than the left.... is anyone else able to replicate this or better still explain it or let me know if I should be worried.
    cheers
    Ivan

    Can you hear it?
    You know you can pan every individual sound in UB? And you can SOLO every slot, and investigate one by one? Also: are there any insert or send effects active?

  • Can Java do this

    Hi,
    I want to really learn Java after just taking classes to this point. I have a task I need to do, but cannot figure IF I can do it in Java, let alone how.
    I have about 40 tools on my SGI. They are written in Fortran, C, or a commbination of both. Their code varies from a few lines to 200 or so source files. The machine is networked to other SGIs and Suns, but has no internet connections. My manager wants a top level GUI written to access these tools and to provide information about them.
    Can this be done in Java without rewriting all of the tools?
    I see that I need to be able to either:
    1) Spawn a process (i.e. tell the system to run a given tool) from my Java top level GUI or
    2) Write a small java interface for each tool and be able to compile that Java with the C or Fortran code.
    Can you do this in Java? If so can someone suggest a book or website to send me in the right direction?
    Thank you

    Hi,
    I want to really learn Java after just taking
    g classes to this point. I have a task I need to do,
    but cannot figure IF I can do it in Java, let alone
    how.
    I have about 40 tools on my SGI. They are written
    n in Fortran, C, or a commbination of both. Their
    code varies from a few lines to 200 or so source
    files. The machine is networked to other SGIs and
    Suns, but has no internet connections. My manager
    wants a top level GUI written to access these tools
    and to provide information about them.
    Can this be done in Java without rewriting all of
    f the tools?
    I see that I need to be able to either:
    1) Spawn a process (i.e. tell the system to run a
    given tool) from my Java top level GUI or
    2) Write a small java interface for each tool and be
    able to compile that Java with the C or Fortran code.
    Can you do this in Java? If so can someone suggest a
    book or website to send me in the right direction?
    Thank youYou can do number one, however this will have to be a system dependent implementation. We have created java applications that can launch non-java applications. It's a little messy but can be done pretty easily.
    As far as number two goes, that sounds like a real mess.

  • Cool CSS3 form styling select - can I replicate this in buttons?

    I stumbled across a very nice looking CSS styling for select input forms using the following CSS definitions:
    body {
    background-color: rgb(12,12,12);
    color: rgb(192,192,192);
    font-family: Verdana, Helvetica, Arial, sans-serif;
    font-size: 13px;
    .selectLIST {
    background-color: rgb(32,32,32);
    border: 0;
    font-size: 12px;
    Just create a little select form referencing these classes - it's looks GREAT! I have tried without success to apply this style behavior to both "submit" and "button" inputs. Any suggestions to replicate this styling in buttons? I am by no means an expert in CSS styling so I may be missing something rather obvious.
    FYI - this effect works nicely in both Safari and the Chrome/Mac browsers. SOL when it comes to FF/IE/Opera/Camino - I've tried. It looks like these effects are tied to the Webkit rendering engine.
    TIA ----

    Definition and Usage:
    The <select> tag is used to create a select list (drop-down list).
    The <option> tags inside the select element define the available options in the list.
    What you have done with the select (your above example) is to turn it into a Class tag. Here's the proper way to use a select tag in a web page.
    <!--
    <select name="cars" id="cars">
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
    <option value="mercedes">Mercedes</option>
    <option value="audi">Audi</option>
    </select>
    #Cars is your syyle id in the CSS. Copy the below example into TextEdit...save as plain text with the .html extension. Works both in Safari and FireFox:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body {
    background-color: #CCCCCC;
    #cars{
    font-family: "Times New Roman", Times, serif;
    font-size: 18px;
    color: #FFFF00;
    background-color: #006699;
    -->
    </style></head>
    <body>
    <select name="cars" id="cars">
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
    <option value="mercedes">Mercedes</option>
    <option value="audi">Audi</option>
    </select>
    </body>
    </html>
    -->
    There are tons of examples on how the use the select tag on the internet.
    http://www.w3schools.com/TAGS/tag_Select.asp
    Or you can Google 'select tag html' for more examples.
    Message was edited by: David M Brewer

  • Can Java do this job?

    Hi all,
    I just thinking about writing a program that can display the caller ID.
    The problem is:
    When a user using dial-up access the internet, the program can detect the caller ID if somebody dial the user's number. Of course, caller ID can be displayed at anytime when somebody calling the user.
    I don't know which Java API can be used for this program and how to start writing this program.
    Please can you give me any suggestion?
    Thanks in advance.
    Leo.

    If you are talking about having someone call the computer through a modem and the local computer's modem answering it, then you can do JNI calls to packages for caller ID. If you are talking about getting the phone number of people browsing across a website--then you better learn how things operate: it is not possible (to my knowlege) no matter what language you use.

  • How can I replicate this menu?

    Sorry for the vague question title, but I'm simply trying to find how to replicate the on this BC site: http://www.de-air.com.au/
    I'm fairly new to BC, so the more info, the better. I assume I just need to add some CSS to my menu and add the appropriate script. But I have no idea how to put this together.
    Many thanks, warren

    Yep you can. CSS HTML Only menu option, Menu Module V2, CSS and a bit of javascript or CSS3 for the animation.

  • How can I replicate this analog TV warping effect on text?

    I've tried using the puppet warp, but creating additional points seems to give the curves unnatural "kinks" that don't match up with the effect I'm trying to achieve.
    I'm also seeing a sort of duplicating effect that's happening, with a second "blackout" that's kind of emerging from the top, but I'm less worried about that. Just wondering how to get this kind of warping. Can anyone help?

    It's doable, but needs a bit of user input.
    Stretching the text without blocking up the cross-bars at the top and bottom is the first problem, but you can get round that with Content Aware Scale.
    Lay down the text and Rasterize.
    Drag rectangular selections across the bottom and top of the text and save the selection.  (I should probably dragged a third selection round the 'B' cross-bar.)
    Select all > Content Aware Scale > Protect in the Options bar, and choose the selection you saved.  Stretch the text.
    Now just distort with Liquify adjusting brush size and pressure to suit.  (I did try other options, but Liquify was the only one that did not soften the edges.
    Fairly close to your original I'd say.

  • Mac OSX (10.9.5) IDCC2014 - potential caption bug - can anyone replicate this fault?

    Hello everybody.
    I have encountered a strange situation with live captions in InDesign. To demonstrate this issue, I have made a new indesign file, and the information for the live caption uses the Camera option from the metadata dropdown in the live caption setup.
    I placed an image that had been saved from the digital camera into InDesign and that displayed the correct name for the camera. All good so far.
    I then opened the file in photoshop, did no manipulations to it other than save it as a slightly different filename and save it as a JPG. When I placed this into indesign and applied the live caption to this image, the caption is replaced with <No data from link>.
    I then opened THAT file back in photoshop, did no manipulations to it other than to save it as a PSD. When I placed this into indesign and applied the live caption to this image, the caption displays the correct name of the camera.
    Finally, I then opened the photoshop file, once again made no manipulations to it other than to save it as a JPG with a slightly different name. Again, when placed into indesign and applied the live caption to the image, it was again replaced with <No data from link>.
    I have checked Bridge and the Camera information is the same in the Camera Data (Exif) portion of the metadata in Bridge. Similarly, I have gone into the links palette in InDesign and selected utilities/XMP file info, and all camera data is displaying the correct camera information, even though the caption is not displaying the camera information.
    Confused? Maybe this screenshot of what I have done will help.
    To me, it looks like the live caption feature is not importing XMP information correctly. Has anyone else encountered a similar situation? If not, is anyone able to replicate the fault that I have experienced?

    I feared as much. I've also tried saving as a tiff file, made no difference. I've submitted as a bug to Adobe - Feature Request/Bug Report Form , they must think I have nothing else to do at the moment.
    I should add for those reading this post that this doesn't mean all information is being disregarded by the live captions, it looks like just specific camera information. Filenames, descriptions... these come in fine.

  • Strange- can anyone replicate this?

    Here's the issue: white color matte. 4 images, all sized 50% and parked in the corners, Each has a 10 pixel black border.
    SOMETIMES there is a faint, what looks like a 1 pixel line running through where the images touch. and sometimes it is not there. Positioning is exact, no keyframes.
    This behavior occurs in the same set of 4 clips.
    This is a head scratcher!

    NO WAIT! I got it! IT'S THE WHITE MATTE.
    Seriously, do ANY of us deserve the Green Star...? I don't think so. Well, the others, maybe. But definately NOT ME.
    Shane

  • Can java provide a follow/depend/attatch compiling warning?

    I wrote a class called Query.It connect to database and return ResultSet.So user must manually call my method close() to close the ResultSet and Connection, otherwise resource will be avaliable.
    But user maybe forget call the close() method.If codes are released,problem will occur.
    For this reason I want java provides a compile warning if a important method is not called.
    e.g. Codes maybe like this:
    /**Start**/
    class Query(){
    ResultSet getResultSet(DataSource ds){
    //Codes get resultset
    return ResultSet;
    void close() follow getResultSet(DataSource){
    //Close databse
    //Note: "follow getResultSet(DataSource)" is my idea.
    class test{
    Query query = new Query();
    RsultSet rst = query.getResultSet();
    //query.close();//#1
    /**End**/
    If user forget writing line #1 (to close Database,etc), java compiler will give a warning:
    The method close() must follow method getResultSet!
    You will get error when running.
    Can java provide this function?
    Thanks!

    to mchan0 :
    I konw you mean I can copy ResultSet to another Object.But if databse is very very large,ResultSet will use large memory.It is not we want.
    e.g. our project database need to store 40,000,000 records.Once load large numbers records,server will crack.
    So I can only use ResultSet.
    If I wrong,please correct me.
    Thanks

  • Can Java save straight to EPS or similar?

    Thanks for reading, heres the setup--user visits my site to design his own custom plaque-he picks a template in my hypothetical Java app and sets to work entering names, congradulatory text and picking from pre-defined graphics/logos and then clicks the ORDER button.
    Can I export his design intact to my server in an EPS or similar, common vector file format? Preferably converting some of the type to curves in the process.
    I don't want to go through a lot of BS to get the file (as with Flash)--I can't run the output through some third party interpreter and get a sorta-kinda-like representation of his design--it's gotta be THE WYSIWYG design he produced. Reason being we're trying to avoid the layout-proof-update roundtrip--what he designed is exactly what we produce and if there are any mistakes they are his, not ours. (It may sound harsh but it's the only way we can possibly compete anymore--we need to offload the design process 100% onto the customer)
    So, can Java do this? Can I get an EPS or similar format straight out of a Java app?
    Thank you.

    http://barcode4j.krysalis.org/
    Next time, go and use Google yourself.

  • How can i make this effect in After Effects?

    hello guys, im new to this awesome program, im using the trial version so ive limited time to learn XD
    can you tell me ho can i replicate this effect in after effect?
    http://tinypic.com/player.php?v=2ajnybc&s=6
    looks like speed effect... is there a way to replicate it in after effects?
    thank you

    CC Bender is really easy to use. Just take the default settings and animate the amount with about three keyframes.
    We can make it a lot more complicated with something like liquefy, or even Time Displacement.

Maybe you are looking for

  • The apple on the new macmini gets lighted? Not sure though...

    does the apple on the top lighted as any other macbook pro or light would do?

  • I need the installer for 10.6.1.7 64, iTunes can you help?

    Pleas advise?... I need the installer for iTunes64 msi, can anyone out there help?..also is there a disk with Itunes on it for an install?

  • Missing APPS...Please HELP

    Today my phone froze. I then turned if off. Once it tuned it back on several of my apps disappeared,including some that are preloaded on the phone; pictures,camera,settings, safari.... Does any one have any tips on what I can do. I don't have my sett

  • VAMT 3.0 error event

    Hi, we are using without problem a VAMT 2.0 on a KMS server for Office 2010 activation. Now we would like to use a VAMT 3.0 on a second KMS server for Office 2013 activation. But when I try to activate the first Office 2013 we receive this error: Vol

  • Puzzled by iphone connecting to ichat server

    OK this will not be easy to describe, but here goes. I have 10.6 Server and Open directory and DNS, all local on my LAN running good. I have enabled ichat server and my user account can login to ichat server. My sons account is also logged on via Tri