256 Kilobytes

All Content > Java

Type All Category All Tag Java

Profile Photo - pls_stop_this
Profile Photo - Default

Last ReplyData science is an inter-disciplinary field that uses scientific methods, processes, algorithms and systems to extract knowledge and insights from man... Data Science Training in Hyderabad,

Data science is an inter-...

Mon, 08 Mar 2021 07:24:26 -08003 months ago1
🗨 3
🐏 0
👁 720
Profile Photo - Some Guy

Help needed with "Class interface or enum expected"?

Answers in Software Development | By Some Guy

Published

Profile Photo - Default

Last ReplyThe class interface or enum expected error is a compile-time error in Java which arises due to curly braces. Typically, this error occurs when there i... reekjohns,

The class interface or en...

Mon, 20 Jul 2020 23:54:09 -070010 months ago1
🗨 1
🐏 0
👁 581
Profile Photo - Some Guy

What is the difference between Java and Javascript?

Answers in Client-Side | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplySee also: https://www.256kilobytes.com/content/show/1916/javascript-vs-ecmascript-vs-typescript-vs-coffeescript-differences-what-to-use-and-when... August R. Garcia,

See also:

Tue, 31 Dec 2019 22:42:18 -08001 year ago1
🗨 4
🐏 0
👁 864
Profile Photo - Some Guy

Fix "Editor does not contain a main type"?

Answers in Software Development | By Some Guy

Published

Profile Photo - Univa

Last ReplyMaybe the folder is not identified as a Source folder. Right click on the project folder -> Properties Choose 'Java Build Path' Click on... Univa,

Maybe the folder is not i...

Mon, 06 May 2019 10:37:14 -07002 years ago1
🗨 1
🐏 0
👁 504
Profile Photo - Some Guy
Profile Photo - Univa

Last ReplyA non-static variable only exists when there is an instance of an object. If you have a static method, it can NOT get to any variable in a class objec... Univa,

A non-static variable onl...

Fri, 12 Apr 2019 11:27:25 -07002 years ago1
🗨 1
🐏 0
👁 506
Profile Photo - Some Guy

How do you use JOptionPane?

Answers in Computer Programming | By Some Guy

Published

Profile Photo - Zhaybib

Last ReplySince you have a question relating to Java programming in regards to JOptionPane, take a look right here at Oracle's help center https://docs.oracle.c... Zhaybib,

Since you have a question...

Sat, 30 Mar 2019 15:26:12 -07002 years ago1
🗨 1
🐏 0
👁 394
Profile Photo - Some Guy

How to open Optifine with Java?

Answers in Computer Software | By Some Guy

Published

Profile Photo - w3nsi012

Last ReplyThe link I pasted below show exactly what you are looking for step by step to achieve the question listed. Also See: https://www.reddit.com/r/Minecraf... w3nsi012,

The link I pasted below s...

Sat, 30 Mar 2019 15:23:24 -07002 years ago1
🗨 1
🐏 0
👁 291
Profile Photo - Some Guy

Math.powe() in Java - any examples?

Answers in Computer Programming | By Some Guy

Published

Profile Photo - KacssPL

Last ReplyThe math.pow is used to calculate a number raise to the power of another number. One quick example of this would be "public static double pow(double a... KacssPL,

The math.pow is used to c...

Sat, 30 Mar 2019 15:07:05 -07002 years ago1
🗨 1
🐏 0
👁 344
Profile Photo - Some Guy

How to square a number in Java?

Answers in Computer Programming | By Some Guy

Published

Profile Photo - zeshelton

Last ReplyThere are multiple ways to skin a cat(You'll hear this phrase a lot) You can multiply the number by itself ie. int i = 4; int sqrt = i * i; console.lo... zeshelton,

There are multiple ways t...

Sat, 30 Mar 2019 14:52:22 -07002 years ago1
🗨 1
🐏 0
👁 408
Profile Photo - Some Guy
Profile Photo - -alxl_

Last ReplyDebugging code is frustrating when learning the ins and outs of a programming language. The error messages may be of little help. Read up on understan... -alxl_,

Debugging code is frustra...

Sat, 30 Mar 2019 14:47:24 -07002 years ago1
🗨 1
🐏 0
👁 303
Profile Photo - Some Guy

How to print a table in Java?

Answers in Computer Programming | By Some Guy

Published

Profile Photo - mrabrahamthidkin

Last ReplyLook into the format settings and you'll see where it will allow you to add a table, or copy one from a Java file into your own file that you're needi... mrabrahamthidkin,

Look into the format sett...

Sat, 30 Mar 2019 14:47:21 -07002 years ago1
🗨 1
🐏 0
👁 421
Profile Photo - Some Guy

How to add more RAM to technic launcher?

Answers in Technology | By Some Guy

Published

Profile Photo - Graln_of_Truth

Last ReplyI will provide a link for how to do so; however I believe you can only have more than 1gb with the 64bit version of Java and you might need to make su... Graln_of_Truth,

I will provide a link for...

Sat, 30 Mar 2019 14:30:06 -07002 years ago1
🗨 1
🐏 0
👁 302
Profile Photo - Some Guy

How to install maven on Mac?

Answers in Technology | By Some Guy

Published

Profile Photo - Zhaybib

Last ReplySince you are trying to install Maven and would like this on your Mac computer, I would recommend that you check here https://www.mkyong.com/maven/ins... Zhaybib,

Since you are trying to i...

Sat, 30 Mar 2019 14:02:11 -07002 years ago1
🗨 1
🐏 0
👁 349
Profile Photo - Some Guy

What do you think of AMD vs CommonJS?

Forum in Web Development | By Some Guy

Published

Profile Photo - Zhaybib

Last ReplyThere are many different reasons why someone would use AMD instead of CommonJS. This website right here offers a more detailed explanation of the matt... Zhaybib,

There are many different...

Sat, 30 Mar 2019 13:53:25 -07002 years ago1
🗨 1
🐏 0
👁 394
Profile Photo - pls_stop_this

How to implement a hashmap in Java

Answers in Computer Programming | By pls_stop_this

Published

Profile Photo - Zhaybib

Last ReplySince you are curious as to how to implement a hashmap in Java, there are many resources that are great for this. One website details an explanation r... Zhaybib,

Since you are curious as...

Sat, 30 Mar 2019 13:43:11 -07002 years ago1
🗨 1
🐏 0
👁 283
Profile Photo - pls_stop_this

How to implement Dijkstra's algorithm in Java?

Answers in Computer Programming | By pls_stop_this

Published

Profile Photo - Zhaybib

Last ReplyWhen you are involved in computer programming, there are many different ways to implement Dijkstra's algorithm in Java. You can check it out right her... Zhaybib,

When you are involved in...

Wed, 20 Mar 2019 21:18:46 -07002 years ago1
🗨 1
🐏 0
👁 290
Profile Photo - pls_stop_this

What are the differences between .net and Java?

Answers in Computer Programming | By pls_stop_this

Published

Profile Photo - 2 SCOOPS 2 TERMS

Last Replyjava and .net program are developing program they are developing many technologies it is used for many development program as basic concept feature te... 2 SCOOPS 2 TERMS,

java and .net program are...

Wed, 20 Mar 2019 20:50:52 -07002 years ago1
🗨 1
🐏 0
👁 307
Profile Photo - bryan_pantana
Profile Photo - bryan_pantana

Last ReplyIndeed.com lists seven basic questions about Java that an employer can ask a potential hire, such as asking the prospect first to explain Java is and... bryan_pantana,

Indeed.com lists seven ba...

Wed, 20 Mar 2019 15:18:29 -07002 years ago1
🗨 1
🐏 0
👁 296
Profile Photo - pls_stop_this

How does the compareTo() method work in Java?

Answers in Computer Programming | By pls_stop_this

Published

Profile Photo - Taiwandesu

Last ReplyThe compareTo() method compares two Strings lexicographically by converting the String to Unicode and returning the number of spaces the characters ar... Taiwandesu,

The compareTo() method co...

Wed, 20 Mar 2019 12:59:55 -07002 years ago1
🗨 1
🐏 0
👁 351
Profile Photo - tich363

What is garbage collection in Java?

Answers in Computer Programming | By tich363

Published

Profile Photo - Edgelady43069

Last ReplyGarbage collection in Java is the process by which Java programs perform automatic memory management. It runs on the Java Virtual Machine which gets r... Edgelady43069,

Garbage collection in Jav...

Wed, 20 Mar 2019 09:38:00 -07002 years ago1
🗨 1
🐏 0
👁 252
Profile Photo - NelsAmmo

Java vs. JavaScript: Differences, pros, and cons?

Forum in Computer Programming | By NelsAmmo

Published

Profile Photo - masshoIe3

Last ReplyJava is an object oriented programming language that can be run on a browser or a Java virtual machine and needs to be compiled. JavaScript is an obje... masshoIe3,

Java is an object oriente...

Wed, 20 Mar 2019 08:06:23 -07002 years ago1
🗨 1
🐏 0
👁 297
Profile Photo - Some Guy

How to open JAR files with Java on Windows 10?

Answers in Technology | By Some Guy

Published

Profile Photo - Univa

Last ReplyMake sure you run the latest version of Java Runtime Environment in your PC.  Navigate to your Java installation folder, go inside the /bin... Univa,

Make sure you run the lat...

Wed, 13 Mar 2019 10:57:48 -07002 years ago1
🗨 1
🐏 0
👁 389
Profile Photo - Some Guy

Set hasdigit to true if the 3-character passcode contains a digit?

Answers in Software Development | By Some Guy

Published | Last Update

Profile Photo - August R. Garcia

Last ReplyThis is a bad question (from a C++ textbook -- "ZyBook CSCI 40") and you should feel bad, but this is one possible answer: // Set hasDigit t... August R. Garcia,

This is a bad question (f...

Wed, 06 Mar 2019 09:04:32 -08002 years ago1
🗨 1
🐏 0
👁 2,229
Profile Photo - Some Guy

How to learn Java if I have no programming experience?

Forum in Computer Programming | By Some Guy

Published

Profile Photo - roxblade

Last ReplyJava is indeed a hard language to learn if you have no prior programming experience. LearnJavaOnline.org is a cool, interactive portal to start the th... roxblade,

Java is indeed a hard lan...

Mon, 25 Feb 2019 10:04:21 -08002 years ago1
🗨 1
🐏 0
👁 370
Profile Photo - Some Guy

How to check if a number is prime in Java?

Answers in Web Development | By Some Guy

Published

Profile Photo - roxblade

Last ReplyA for loop can be used to do this checking. A while loop is also efficient. Check this article on Programiz to check both the options and figure out w... roxblade,

A for loop can be used to...

Sat, 23 Feb 2019 11:13:09 -08002 years ago1
🗨 1
🐏 0
👁 338
Profile Photo - Some Guy

How can I install Eclipse on Windows 10?

Answers in Operating Systems | By Some Guy

Published

Profile Photo - roxblade

Last ReplyFirst of all, you need to install JDK. After that, download Eclipse itself from the official website. You can find the file under Get Eclipse Oxygen ?... roxblade,

First of all, you need to...

Mon, 18 Feb 2019 13:33:37 -08002 years ago1
🗨 1
🐏 0
👁 290
Profile Photo - Some Guy

Installing Netbeans?

Answers in Project Management | By Some Guy

Published

Profile Photo - roxblade

Last ReplyFollow the official instructions from the NetBeans website to make sure you don't run into any problem. You can find the instructions page here. roxblade,

Follow the official instr...

Mon, 18 Feb 2019 13:27:23 -08002 years ago1
🗨 1
🐏 0
👁 443
Profile Photo - Some Guy

How to install Java on Ubuntu?

Answers in Operating Systems | By Some Guy

Published

Profile Photo - roxblade

Last ReplyFirst, you need to know what variant of Java do you need? OpenJDK, Oracle Java, or OpenJDK 8?Now, you should run asudo apt updatecommand before any in... roxblade,

First, you need to know w...

Sun, 10 Feb 2019 03:31:58 -08002 years ago1
🗨 1
🐏 0
👁 417
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreI encountered an issue that I'm unsure of how to fix, I was hoping for some help. This is the error message, 'exception in thread mainJava.l...
🗨 0
🐏 0
👁 291
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last ReplyYou might check this thread, which has similar information about this type of error when installing Python: https://www.256kilobytes.com/conten... August R. Garcia,

You might check this thre...

Fri, 04 Jan 2019 13:11:05 -08002 years ago1
🗨 1
🐏 0
👁 503