Java Variables, Data Types & Android Views - Android Virgin 4 смотреть онлайн
There goes the flannel, you're so close, feeling overloaded… with information? In this lesson we’re going to make shit happen, but first let’s learn a little bit about variables in Java. Variables are containers, they hold stuff in your program, from strings, which are usually words and sentences, to numbers and more complex objects. Lets do an example, here we set the variable pickupLine equal to “Hey girl, you had me at hello world”. Let’s break this down, In Java we use camel case when declaring variables, so no spaces, but the second word L is capitalized. The first word String is the data type which specifies the type of data pickupLine will hold. Here’s a list of the more common data types, int holds a number, float holds a decimal, boolean holds true or false, char holds a single character, and String. Notice String is capitalized, that’s because its a complex data type while the others are known as primitives. All this means is String is actually an object that we can call methods on. If you’ve done any other coding you probably know about functions, well methods are pretty much the same thing except they exist within an object. So we can do something like String dot length and it will return the length of the string. Length is a method in the String object. Of course if we wanted to set that value to a variable we’d have to set the type to be int because it returns a number. Strings are always enclosed in double quotes.
Now that we know about variables, let’s jump back into Android studio and open the main activity java class. In Java the file name is the same as the class it contains, so MainActivity.java contains the MainActivity class. This is where the magic happens. Let’s do a few things to help us get started, first turn on line numbers by right or control clicking in the gutter, the little area to the left of the open file. Second lets turn off automatic code folding, if you click that little plus icon next to import at the top of the page it will unfold that bit of code, it’s good to see everything that’s going on when you’re a newb, and let’s make sure automatic importing is turned on, which means Android Studio will automatically add a line to import stuff when you use it in your code. Go into preferences, or settings for windows, editor, general, code folding and turn all of that off. Next, go to auto Import and make sure everything is checked. We’ll show what this does in a second. Click apply then ok.
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Java Variables, Data Types & Android Views - Android Virgin 4» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.