• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

CLASSES INCLUDED IN NETBEANS?

 
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey guys, i'm new
i'm only a mis guy so bare with me
but i just started using netbeans after being familiar with the textpad type of compiling/executing
anyway i'm trying to read strings using the the console read in funtion
i used the statement "import javacore.*;" before the class definition
then used the code:

public class ConsoleTest
{ public static void main(String[] args)
{double x=Console.readDouble ("enter a number,i'll add two to it");
System.out.println(x+2);
}
}

not compiling

and i'm having similar problems using the NumberFormat.getCurrencyInstance() function

is there a certain way to import things in netbeans?
helpppppppppppppppppppp!
 
Jay Dilla
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
lol
i didnt mean strings
meant double
sorry
 
Ranch Hand
Posts: 823
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

You probably just need to set your classpath in the NetBeans IDE. It's under Tools => Options => Building => Compiler Types => External Compilation. I don't really know it that well myself but it comes with online documentation.

Jules
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"south phillyman"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it

here.

Thanks! and welcome to the JavaRanch!

BTW, I am originally from Whitemarsh, PA

Oh, and I am going to move this to the IDEs forum. We have lots of forums on different topics and would like to keep threads on topic for the forum that they are posted in. This forum is the Servlets forum.

Mark
 
I'm a lumberjack and I'm okay, I sleep all night and work all day. Lumberjack ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic