Search:

Type: Posts; User: Chinedu & ICT

Search: Search took 0.11 seconds.

  1. Replies
    0
    Views
    618

    creating OBJECTs

    hi great people. i tried :running this CreateObjectDemo but i was greeted with 6errors. i copied the code from an ORAcle material online. ds is d code:


    public class CreateObjectDemo {

    ...
  2. Re: CommaND Prompt:class, interface, or enum expected

    yep! viewing it.am starting from declaring classes.



    whats ds trackback input field for?
  3. Re: CommaND Prompt:class, interface, or enum expected

    a method, as in
    public static void main(String[] args)
  4. Re: CommaND Prompt:class, interface, or enum expected

    how? i don't understand.
  5. Re: CommaND Prompt:class, interface, or enum expected

    problem solved. thank you. this is the code that was compiled:


    public class MyNum {
    public static void main(String[] args) {
    int MyNum=147;
    System.out.println( MyNum ) ;...
  6. Re: CommaND Prompt:class, interface, or enum expected

    I made myNum into a class MyNum, and rewrote the code to:

    public class MyNum {
    int MyNum=147;
    System.out.println( MyNum ) ;
    }

    when i compiled the above code, this is the output:
  7. CommaND Prompt:class, interface, or enum expected

    i am a beginner. i want print a number on the system with this code:


    int myNum=33 ;
    System.out.println(myNum) ;

    command prompt rather put this out:


    C:\Users\HP\Documents>javac myNum.java
  8. Replies
    33
    Views
    2,983

    [SOLVED] Re: running java files in the cmd.exe

    thank u. i observed that javac fails when i'm in HP(thats my computer), but compiles MyClass.java when i cd to Documents.
  9. Replies
    33
    Views
    2,983

    [SOLVED] Re: running java files in the cmd.exe

    I'm happy this morning. i successfully compiled, ran and executed my first java programming this morning. i was on it yesternight, watched an online video and saved the file as ANSI, tried compiling...
  10. Replies
    33
    Views
    2,983

    [SOLVED] Re: running java files in the cmd.exe

    how do i do it. i have been changing directories. have changed from unicode-utf-8-ANSI, changed saving from all files to text type, then back to all files...how will I CHANGE tHE SOURCE FILE TO a...
  11. Replies
    33
    Views
    2,983

    [SOLVED] Re: running java files in the cmd.exe

    i put it in a folder, myJava, but i removed it now n pasted it on the HP.ran the command, ds what i got:

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights...
  12. Replies
    33
    Views
    2,983

    [SOLVED] Re: running java files in the cmd.exe

    i've used the dir command and MyClass.java file is in the HP directory. i even moved the MyClass.java file to the java software folder, it was still not loaded/found, i removed it from the folder. i...
  13. Replies
    33
    Views
    2,983

    [SOLVED] Re: running java files in the cmd.exe

    i c ANSI, unicode, unicode big endian, and utf-8. in "save as type", i c save as text, and all files. i used to save wt unicode, now i save wt utf-8. i edited it now, n changed the save as type from...
  14. Replies
    33
    Views
    2,983

    [SOLVED] Re: running java files in the cmd.exe

    C:\Users\HP\myJava>javac MyClass.java
    MyClass.java:1: error: illegal character: '\u0000'
    *■p u b l i c c l a s s M y C l a s s {
    ^
    MyClass.java:1: error: illegal character:...
  15. Replies
    33
    Views
    2,983

    [SOLVED] Re: running java files in the cmd.exe

    i uninstalled other java softs i have and downloaded the jdk 8 update 202 today, the installation since in the afternoon today, based on my time zn is still incomplete. i think its being delayed by...
  16. Replies
    33
    Views
    2,983

    [SOLVED] Re: running java files in the cmd.exe

    do i have to uninstall this jre i have, and also the data reporting app running on java?
  17. Replies
    33
    Views
    2,983

    [SOLVED] Re: running java files in the cmd.exe

    thanks alot Binarydigit09!
    how do i solve this "javac -version"'s error issue, how do i install the jdk?
    i forgot to mention from onset, i have a data-reporting software that runs on java installed...
  18. Replies
    33
    Views
    2,983

    [SOLVED] Re: running java files in the cmd.exe

    thank you. this is whAT i hv in the cmd.exe:

    C:\Users\HP>javac -version
    'javac' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Users\HP>java...
  19. Replies
    33
    Views
    2,983

    [SOLVED] Re: running java files in the cmd.exe

    java version "1.8.0_231"
    Java<TM> SE Runtime Environment <build 1.8.0_231-b11>
    Java HotSpot<TM> Client VM <build 25.231-b11, mixed mode>

    if i have to change the path with the version of java i...
  20. Replies
    33
    Views
    2,983

    [SOLVED] Re: running java files in the cmd.exe

    yeah. i know where files are located on my PC. it's located in C:\Users\HP. my java file is in there and still the cmd don't run it.
  21. Replies
    33
    Views
    2,983

    [SOLVED] Re: running java files in the cmd.exe

    i dont understand this:The command line I posted could be used in any command prompt window.
    should i copy and paste the command line in the cmd prompt window.i know my questions will sound silly,...
  22. Replies
    33
    Views
    2,983

    [SOLVED] Re: running java files in the cmd.exe

    thank you for the insight. the commandline that you used, is it in the view advanced settings>system variables>path. this is the version of java that i have installed:

    java version "1.8.0_231"...
  23. Re: Tips for a beginner to start JAVA with.

    methinks no knowledge is a waste. java is a programming language, html is used to structure web pages, css is for styling html, javascript is the scripting lang. of html. u gat nothing to lose if u...
  24. Replies
    33
    Views
    2,983

    [SOLVED] running java files in the cmd.exe

    I am Charles Chinedu, a graduate of Statistics, in Nigeria.i picked interest in coding recently, so i took to trraining myself on html5, css, and javascript. i chose to add java to the tutorials i'm...
Results 1 to 24 of 25