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 {
...
Type: Posts; User: Chinedu & ICT
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 {
...
yep! viewing it.am starting from declaring classes.
whats ds trackback input field for?
a method, as in
public static void main(String[] args)
how? i don't understand.
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 ) ;...
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:
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
thank u. i observed that javac fails when i'm in HP(thats my computer), but compiles MyClass.java when i cd to Documents.
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...
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...
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...
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...
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...
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:...
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...
do i have to uninstall this jre i have, and also the data reporting app running on java?
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...
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...
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...
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.
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,...
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"...
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...
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...