This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests and have Scott Selikoff and Jeanne Boyarsky on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP forum!

Justin thee Turner

Greenhorn
+ Follow
since Feb 18, 2021
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Justin thee Turner

I think i may have worded my question poorly.
The particular exercise required me to use isDigit() with a string and use it's locations as the character. I (sort of/maybe) know how to use it now. I used it as an example of something that was taught in an incomplete way
and caused me to get behind in my work from having to scour the net for answers to something that could have been explained in about a sentence or two.

Do you know of a good resource for me to learn with so this doesn't keep happening?

I bought "head first java" which didn't even return a result for isDigit when i searched it. I also have "Murach's beginning Java" which is a better text, but had the same problem of it just glossing over it.


5 days ago
thank you for the resource, but :


{public static boolean isDigit(char ch)
Determines if the specified character is a digit.
A character is a digit if its general category type, provided by Character.getType(ch), is DECIMAL_DIGIT_NUMBER.

Some Unicode character ranges that contain digits:

'\u0030' through '\u0039', ISO-LATIN-1 digits ('0' through '9')
'\u0660' through '\u0669', Arabic-Indic digits
'\u06F0' through '\u06F9', Extended Arabic-Indic digits
'\u0966' through '\u096F', Devanagari digits
'\uFF10' through '\uFF19', Fullwidth digits
Many other character ranges contain digits as well.}



means very little to me. at no point does it show Character.isDigit(); in an example with say, a string. It just shows (public static boolean isDigit(char ch)) . it definitely shows Character.getType(); which is more confusing than when i got there seeing as i was trying to learn about the previous command and see an example of it's implementation.
That's to say i even know that it's a class built into Java in the first place. Is there a better resource for learning Java, or am I just not cut out for it? I feel like most things i try and access leave out things when they explain them, and code must be exact, therefore my code will never work
without exact explanations.
I feel like i have to scour the net and wade through 3-4 videos just to pars a simple 2 sentence explanation of a basic concept. Maybe i'm just burnt. Just seems like a terrible way to learn java.
5 days ago
I'm familiar with the concept of loops as far as nesting and such, my question is: How do keep all of it straight in your head?

I'm sitting here deciphering these things over and over again for school, so these are things i've had no hand in coding, and honestly beyond a certain point my brain just throws it's hands up because it can't keep the whole routine going without dropping some other portion of it.

do you write it out on paper? is there some standard method for doing this?

a simple loop is easy enough, but once you get 3-4 factors cycling, incrementing by different amounts and updating each other, it seems impossible to do mentally, at least to me.

While i have you, I'm having a hard time differentiating variables from built in java methods when i'm shown examples. Many times i'll see a chart, lately it was "isDigit()" it didn't have anything that said it needed "Character." in front of it there.
later on in a code example it was shown as Character.isDigit(); I have no idea if character is referring to some method they set up elsewhere, having to do with some variable, or is intrinsic to the command. I don't know what to ignore or assume as this is how i'm learning java.
I bought two books on Java and went searching for isDigit and found nothing discussing it beyond what that chart had, one of them didn't have it at all. Surely there is a more straightforward way of learning this stuff. I have a teacher, but he typically takes about
a day to get back to me, and the amount of work i have for his class doesn't afford me that luxury.

Sorry for the novel. i'm just frustrated, i feel stuck, and zybooks isn't the best teacher.
6 days ago