Vladimir Glushko

Greenhorn
+ Follow
since Oct 23, 2015
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vladimir Glushko

Thanks, guys! Really so simple mistake i did.
6 years ago
Hi, guys. I have a task to write method, which will print out an array in reverse (means, first element to be printed out last and vice versa). Code is below:



When i'm running the program following outcome is printed out:
[I@154617c
[I@154617c
[I@154617c
[I@154617c
[I@154617c

Seems that program just printing out memory cell number, but not digits. Can you please explain why this happens and how this may be solved.

Thanks in advance.
6 years ago
Hello, guys.

I have a symbol '*' and its coordinates: x = 1, y = 3.

How can I print above symbol on the screen with mentioned coordinates? As far as I know in C# there's a method SetCursorPosition(x,y), but i couldn't find same in Java. Presently i've made class Point with description of point and its coordinates, and main class, which assigns values. Listing is below:



But now i need set cursor position (1, 3) and print '*' in this position. Is this possible?

Thank you in advance for help!

P.S. Not sure, if it's important, but I'm not using IDE, just command line.
8 years ago

Arun Chidambaram wrote:Java is a case sensitive program. Check Java API for method signatures and case sensitivity. On below code it should be System.out.println(....)

Vladimir Glushko wrote:System.Out.Println("I'm ruling")



Yes, this worked. How can I forget this? Thank you!

8 years ago

Liutauras Vilda wrote:Hi Vladimir,

Welcome to the Ranch, nice to see you around

One thing before you start contributing in this nice community - please UseCodeTags (<- link to click on) when you post actual code. It will make your code look in a code format. I have added them for you this time, see how better it looks like?



Thank you, noted. Will use this in future
8 years ago
Hello. I'm an ultimate beginner and started from "Head First Java". And failed to compiled very first program.
During the complilation there were following errors:

error: can not find symbol
System.Out.Println("I'm ruling")
symbol: Variable out
location: Class System

and same for System.Out.Println("the world")

P.S. Already set up JDK folder in System Variables and checked is complied is configured by "javac -version".

So what's wrong with me?
8 years ago