• Post Reply Bookmark Topic Watch Topic
  • New Topic

function calling problem  RSS feed

 
ashraf ansari
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I want to write my own program into which i want to call a function like following way.

System.out.println("Hai");
I want to use "asraf" insted of class System
I want to use "is" insted of object out of class System
I want to write my function "bye" insted of caaling println

Can any body give me a solution to this problem
 
Masoud Kalali
Author
Ranch Hand
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is not a jdbc issue and it would be better if you post in related forum.
you will get your answer much faster when you post in related forum.

I can not correctly understand your question but if you want to be able to call a method of a class without creating an instance object then you should do this :
code would look like :


now you can use that calling schema here like :


is it what you want or you need to simulate println() method without using println ?
[ August 19, 2006: Message edited by: Masoud Kalali ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37513
554
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ashraf,
I'm moving this to our Java In General for you.

Welcome to JavaRanch!
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a *really* silly request... but okay...



Henry
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!